Fix bad test

This commit is contained in:
Laurent Destailleur 2023-01-19 01:26:59 +01:00
parent e28fce6318
commit b2d9ade2d3

View File

@ -628,10 +628,11 @@ if ($mode == 'show_day') {
if ($type) {
$sql .= " AND ca.id = ".((int) $type);
}
var_dump($status);
if ($status == '0') {
$sql .= " AND a.percent = 0";
}
if ($status == '-1' || $status == 'na') {
if ($status === 'na') {
// Not applicable
$sql .= " AND a.percent = -1";
}
@ -658,7 +659,7 @@ if ($filtert > 0 || $usergroup > 0) {
}
// Sort on date
$sql .= ' ORDER BY fk_user_action, datep'; //fk_user_action
print $sql;
dol_syslog("comm/action/peruser.php", LOG_DEBUG);
$resql = $db->query($sql);