inc/record.inc.php
changeset 172 4708e6b152a0
parent 171 2a10febd6af9
child 174 a17ec7de4bbb
--- a/inc/record.inc.php	Sun May 18 12:28:16 2008 +0000
+++ b/inc/record.inc.php	Mon May 19 10:20:44 2008 +0000
@@ -963,7 +963,7 @@
 
 	if ($perm == "own") {
 		$sql_add_from = ", zones ";
-		$sql_add_where = " AND zones.domain_id = record.id AND zones.owner = " . $db->quote($_SESSION['userid']);
+		$sql_add_where = " AND zones.domain_id = records.domain_id AND zones.owner = " . $db->quote($_SESSION['userid']);
 	}
 
 	$query = "SELECT