inc/record.inc.php
changeset 182 049347a649e0
parent 181 76a304b484ed
child 192 3d18290ac993
--- 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;
 }