[feladat @ 245]
authorpeter
Wed, 16 Apr 2008 17:53:40 +0000
changeset 139 98ce0ffae5b8
parent 138 3e36ebbfe048
child 140 e68c3d6094d1
[feladat @ 245] Bugfix: When a record is deleted from the search screen, an error was displayed. This closes ticket:43.
delete_record.php
--- a/delete_record.php	Fri Apr 11 13:33:30 2008 +0000
+++ b/delete_record.php	Wed Apr 16 17:53:40 2008 +0000
@@ -36,7 +36,8 @@
 elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; }
 else { $perm_content_edit = "none" ; }
 
-$user_is_zone_owner = verify_user_is_owner_zoneid($_GET["domain"]);
+$zid = get_zone_id_from_record_id($_GET['id']);
+$user_is_zone_owner = verify_user_is_owner_zoneid($zid);
 
 if ($record_id == "-1" ) {
 	error(ERR_INV_INPUT);