diff -r 76a304b484ed -r 049347a649e0 inc/record.inc.php --- a/inc/record.inc.php Wed Jun 18 19:11:39 2008 +0000 +++ b/inc/record.inc.php Fri Jun 20 12:21:03 2008 +0000 @@ -23,7 +23,7 @@ global $db; $query = "SELECT COUNT(id) FROM domains WHERE id = " . $db->quote($zid); $count = $db->queryOne($query); - if (PEAR::isError($result)) { error($result->getMessage()); return false; } + if (PEAR::isError($count)) { error($result->getMessage()); return false; } return $count; }