From b327677b4e405ccc71f6292fad2ff08abe2f7c99 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 8 May 2006 17:17:58 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@2822 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/audit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/php/audit.php') 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"])) { -- cgit