[feladat @ 279]
Fixed a bug causing return of wrong seasrch results when searching for zones the user does own. Reported by Adhisimon. Closes: #56.
--- 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