Remove duplicate error handling for no registrations
This commit is contained in:
parent
a83fcb1839
commit
4302c2d2c9
1 changed files with 9 additions and 7 deletions
|
|
@ -246,13 +246,14 @@ if ($inputregistrationnumber && strlen($inputregistrationnumber) < 8) {
|
|||
*/
|
||||
print '<br>';
|
||||
}
|
||||
if ($num == 0) {
|
||||
print img_picto('', 'cross', 'class="pictofixedwidth error"').$langs->trans("NoRegistrationFound");
|
||||
print '<br>';
|
||||
}
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
}
|
||||
if ($num == 0) {
|
||||
print img_picto('', 'cross', 'class="pictofixedwidth error"').$langs->trans("NoRegistrationFound");
|
||||
print '<br>';
|
||||
}
|
||||
|
||||
print '<br>';
|
||||
|
||||
|
||||
|
|
@ -283,12 +284,13 @@ if ($inputregistrationnumber && strlen($inputregistrationnumber) < 8) {
|
|||
*/
|
||||
print '<br>';
|
||||
}
|
||||
if ($num == 0) {
|
||||
print img_picto('', 'tick', 'class="pictofixedwidth"').$langs->trans("NoBackupRestorationOrLastLineDeletionDetected");
|
||||
}
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
}
|
||||
if ($num == 0) {
|
||||
print img_picto('', 'tick', 'class="pictofixedwidth"').$langs->trans("NoBackupRestorationOrLastLineDeletionDetected");
|
||||
}
|
||||
|
||||
print '<br>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue