summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f22eaa9)
raw | patch | inline | side by side (parent: f22eaa9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Oct 2008 14:57:55 +0000 (14:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Oct 2008 14:57:55 +0000 (14:57 +0000) |
-Ensure that a valid macAddress is given
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12775 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12775 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_termDNS.inc | patch | blob | history |
index 9e90cb8bf3916db769bde4b5b4813d4019747aa4..5f861551e5746e1ee1f15423031d73b942505964 100644 (file)
if ($this->macAddress == "" && chkacl ($this->acl, "macAddress") == ""){
$message[]= _("The required field 'MAC-address' is not set.");
}
+ }
- /* Check if given mac is valid mac
- */
- if(!is_mac($this->macAddress)){
- $message[]=(_("The given macaddress is invalid. There must be 6 2byte segments seperated by ':'."));
- }
+ /* Check if given mac is valid mac
+ */
+ if(!empty($this->macAddress) && !is_mac($this->macAddress)){
+ $message[]=(_("The given macaddress is invalid. There must be 6 2byte segments seperated by ':'."));
}
/* only perfrom this checks if this is a valid DNS account */