inc/record.inc.php
changeset 172 4708e6b152a0
parent 171 2a10febd6af9
child 174 a17ec7de4bbb
equal deleted inserted replaced
171:2a10febd6af9 172:4708e6b152a0
   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,