Skip to content

Commit

Permalink
#4171 [Digiriskuser] fix: no more php8 warning in digiriskusers
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-kilyan committed Dec 4, 2024
1 parent bd98ee9 commit 1ecebeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions view/digiriskusers.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
*/

if (GETPOST('cancel', 'alpha')) { $action = 'list'; $massaction = ''; }
if ( ! GETPOST('confirmmassaction', 'alpha') && $massaction != 'presend' && $massaction != 'confirm_presend' && $massaction != 'confirm_createbills') { $massaction = ''; }
if ( isset($massaction) && !GETPOST('confirmmassaction', 'alpha') && $massaction != 'presend' && $massaction != 'confirm_presend' && $massaction != 'confirm_createbills') { $massaction = ''; }

$parameters = array();
$reshook = $hookmanager->executeHooks('doActions', $parameters); // Note that $action and $object may have been modified by some hooks
Expand Down Expand Up @@ -329,7 +329,7 @@
} else {
$sql .= " WHERE u.entity IN (".getEntity('user').")";
}
if ($socid > 0) $sql .= " AND u.fk_soc = " . $socid;
if (isset($socid) && $socid > 0) $sql .= " AND u.fk_soc = " . $socid;
//if ($search_user != '') $sql.=natural_search(array('u.login', 'u.lastname', 'u.firstname'), $search_user);
if ($search_supervisor > 0) $sql .= " AND u.fk_user IN (" . $db->escape($search_supervisor) . ")";
if ($search_thirdparty != '') $sql .= natural_search(array('s.nom'), $search_thirdparty);
Expand Down Expand Up @@ -588,13 +588,13 @@
print "</tr>\n";

$i = 0;
$totalarray = array();
$totalarray = ['nbfield' => 0];
while ($i < min($num, $limit)) {
$obj = $db->fetch_object($result);

$userstatic->id = $obj->rowid;
$userstatic->admin = $obj->admin;
$userstatic->ref = $obj->label;
$userstatic->ref = $obj->label ?? '';
$userstatic->login = $obj->login;
$userstatic->statut = $obj->statut;
$userstatic->email = $obj->email;
Expand Down

0 comments on commit 1ecebeb

Please sign in to comment.