inc/record.inc.php
changeset 111 0a2342a64b83
parent 106 41d05ff53708
child 115 b1d7998a903e
--- a/inc/record.inc.php	Sun Mar 30 09:20:38 2008 +0000
+++ b/inc/record.inc.php	Sun Mar 30 10:52:36 2008 +0000
@@ -95,10 +95,12 @@
 	$zone_type = get_domain_type($record['zid']);
 
 	if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) {
-		return _("You are not allowed to edit this record.") ; 
+		error(ERR_PERM_EDIT_RECORD);
+		return false;
 	} else {
 		if($record['content'] == "") {
-			return _("Error: content field may not be empty.") ; 
+			error(ERR_DNS_CONTENT);
+			return false;
 		}
 		global $db;
 		// TODO: no need to check for numeric-ness of zone id if we check with validate_input as well?