equal
deleted
inserted
replaced
21 |
21 |
22 function zone_id_exists($zid) { |
22 function zone_id_exists($zid) { |
23 global $db; |
23 global $db; |
24 $query = "SELECT COUNT(id) FROM domains WHERE id = " . $db->quote($zid); |
24 $query = "SELECT COUNT(id) FROM domains WHERE id = " . $db->quote($zid); |
25 $count = $db->queryOne($query); |
25 $count = $db->queryOne($query); |
26 if (PEAR::isError($result)) { error($result->getMessage()); return false; } |
26 if (PEAR::isError($count)) { error($result->getMessage()); return false; } |
27 return $count; |
27 return $count; |
28 } |
28 } |
29 |
29 |
30 |
30 |
31 function get_zone_id_from_record_id($rid) { |
31 function get_zone_id_from_record_id($rid) { |