diff options
Diffstat (limited to 'frontends/php/audit.php')
| -rw-r--r-- | frontends/php/audit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/audit.php b/frontends/php/audit.php index 742087eb..805c6d16 100644 --- a/frontends/php/audit.php +++ b/frontends/php/audit.php @@ -70,7 +70,7 @@ $sql="select max(auditid) as max from audit"; $result=DBselect($sql); $row=DBfetch($result); - $maxauditid=@iif(DBnum_rows($result)>0,$row["max"],0); + $maxauditid=@iif($row,$row["max"],0); if(!isset($_REQUEST["start"])) { |
