edit_record.php
changeset 37 b785e54690ce
parent 13 2ff220cfde13
child 47 ae140472d97c
--- a/edit_record.php	Mon Jul 02 23:01:18 2007 +0000
+++ b/edit_record.php	Tue Jul 10 21:24:06 2007 +0000
@@ -19,7 +19,7 @@
         clean_page("edit.php?id=".$_POST["domainid"]);
 } elseif($_SESSION["partial_".get_domain_name_from_id($_GET["domain"])] == 1)
 {
-    $checkPartial = $db->getOne("SELECT id FROM record_owners WHERE record_id='".$_GET["id"]."' AND user_id='".$_SESSION["userid"]."' LIMIT 1");
+    $checkPartial = $db->queryOne("SELECT id FROM record_owners WHERE record_id='".$_GET["id"]."' AND user_id='".$_SESSION["userid"]."' LIMIT 1");
     if (empty($checkPartial)) {
         error(ERR_RECORD_ACCESS_DENIED);
     }