diff -r e675b676907a -r 41353c2e0c9f inc/record.inc.php --- a/inc/record.inc.php Fri May 16 11:30:20 2008 +0000 +++ b/inc/record.inc.php Sun May 18 07:56:11 2008 +0000 @@ -936,7 +936,7 @@ // Search for matching domains if ($perm == "own") { $sql_add_from = ", zones "; - $sql_add_where = " AND zones.domain_id = domains.id AND zones.owner = " . $db->quote($userid); + $sql_add_where = " AND zones.domain_id = domains.id AND zones.owner = " . $db->quote($_SESSION['userid']); } $query = "SELECT @@ -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($userid); + $sql_add_where = " AND zones.domain_id = record.id AND zones.owner = " . $db->quote($_SESSION['userid']); } $query = "SELECT