Skip to content

Commit

Permalink
Fixed a bug causing return of wrong seasrch results when searching fo…
Browse files Browse the repository at this point in the history
…r zones the user does own. Reported by Adhisimon. Closes: poweradmin#56.
  • Loading branch information
rejozenger committed May 19, 2008
1 parent 53dd855 commit 5e6d86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/record.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ function search_zone_and_record($holy_grail,$perm) {

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
Expand Down

0 comments on commit 5e6d86e

Please sign in to comment.