equal
deleted
inserted
replaced
961 |
961 |
962 // Search for matching records |
962 // Search for matching records |
963 |
963 |
964 if ($perm == "own") { |
964 if ($perm == "own") { |
965 $sql_add_from = ", zones "; |
965 $sql_add_from = ", zones "; |
966 $sql_add_where = " AND zones.domain_id = record.id AND zones.owner = " . $db->quote($_SESSION['userid']); |
966 $sql_add_where = " AND zones.domain_id = records.domain_id AND zones.owner = " . $db->quote($_SESSION['userid']); |
967 } |
967 } |
968 |
968 |
969 $query = "SELECT |
969 $query = "SELECT |
970 records.id AS rid, |
970 records.id AS rid, |
971 records.name AS name, |
971 records.name AS name, |