# HG changeset patch # User rejo # Date 1211192444 0 # Node ID 4708e6b152a08b0b74529515a3160dad843ac69e # Parent 2a10febd6af92fa1ba7ac8e2dcbf279636aeb3fd [feladat @ 279] Fixed a bug causing return of wrong seasrch results when searching for zones the user does own. Reported by Adhisimon. Closes: #56. diff -r 2a10febd6af9 -r 4708e6b152a0 inc/record.inc.php --- 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