Merge pull request #22674 from emilisev/fix_warning
FIX Undefined variable $backtopage
This commit is contained in:
commit
e9c1bc8597
@ -145,6 +145,7 @@ if ($action == 'add' && $user->rights->adherent->configurer) {
|
||||
$sql = "SELECT libelle FROM ".MAIN_DB_PREFIX."adherent_type WHERE libelle='".$db->escape($object->label)."'";
|
||||
$sql .= " WHERE entity IN (".getEntity('member_type').")";
|
||||
$result = $db->query($sql);
|
||||
$num = null;
|
||||
if ($result) {
|
||||
$num = $db->num_rows($result);
|
||||
}
|
||||
|
||||
@ -160,7 +160,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes' && !empty($permissionto
|
||||
}
|
||||
|
||||
if (is_object($object) && $object->id > 0) {
|
||||
if ($backtopage) {
|
||||
if (!empty($backtopage)) {
|
||||
header('Location: '.$backtopage);
|
||||
exit;
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user