[feladat @ 279]
authorrejo
Mon, 19 May 2008 10:20:44 +0000
changeset 172 4708e6b152a0
parent 171 2a10febd6af9
child 173 6d0e4e6bedad
[feladat @ 279] Fixed a bug causing return of wrong seasrch results when searching for zones the user does own. Reported by Adhisimon. Closes: #56.
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