edit.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
child 127 e2c54e888f7e
--- a/edit.php	Thu Apr 03 18:57:11 2008 +0000
+++ b/edit.php	Thu Apr 03 21:48:36 2008 +0000
@@ -39,16 +39,16 @@
 	}
 }
 
-if (verify_permission(zone_content_view_others)) { $perm_view = "all" ; } 
-elseif (verify_permission(zone_content_view_own)) { $perm_view = "own" ; } 
+if (verify_permission('zone_content_view_others')) { $perm_view = "all" ; } 
+elseif (verify_permission('zone_content_view_own')) { $perm_view = "own" ; } 
 else { $perm_view = "none" ; }
 
-if (verify_permission(zone_content_edit_others)) { $perm_content_edit = "all" ; } 
-elseif (verify_permission(zone_content_edit_own)) { $perm_content_edit = "own" ; } 
+if (verify_permission('zone_content_edit_others')) { $perm_content_edit = "all" ; } 
+elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; } 
 else { $perm_content_edit = "none" ; }
 
-if (verify_permission(zone_meta_edit_others)) { $perm_meta_edit = "all" ; } 
-elseif (verify_permission(zone_meta_edit_own)) { $perm_meta_edit = "own" ; } 
+if (verify_permission('zone_meta_edit_others')) { $perm_meta_edit = "all" ; } 
+elseif (verify_permission('zone_meta_edit_own')) { $perm_meta_edit = "own" ; } 
 else { $perm_meta_edit = "none" ; }
 
 $user_is_zone_owner = verify_user_is_owner_zoneid($zone_id);
@@ -181,7 +181,7 @@
 		echo "         <select name=\"newowner\">\n";
 		$users = show_users();
 		foreach ($users as $user) {
-			unset($add);
+			$add = '';
 			if ($user["id"] == $_SESSION["userid"]) {
 				$add = " SELECTED";
 			}
@@ -206,7 +206,7 @@
 		echo "        <td>\n";
 		echo "         <select name=\"newtype\">\n";
 		foreach($server_types as $type) {
-			unset($add);
+			$add = '';
 			if ($type == $domain_type) {
 				$add = " SELECTED";
 			}