Code

Updated phone objects
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Aug 2008 12:22:34 +0000 (12:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Aug 2008 12:22:34 +0000 (12:22 +0000)
-Allow '0' as object name too.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12209 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc
gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc

index 4decf38ceaff8c844aa8ac73667f4fed13fc3c13..d10d1b85f6b9f1383fbde6940336d49eb4733869 100644 (file)
@@ -384,7 +384,7 @@ class conference extends plugin
       $message[]= msgPool::required(_("PIN"));
     }
 
-    if(empty($this->cn)){
+    if($this->cn == ""){
       $message[] = msgPool::required(_("Name"));
     }
 
index 4f6df42f4508c65f12a2be9ef0c1a9717228d904..b5e20f0e812a9cb5ab5ccfa422cbf40faf8b7d21 100644 (file)
@@ -416,7 +416,7 @@ class macro extends plugin
     }
   
     /* Check if display name is set */
-    if(empty($this->displayName)){
+    if($this->displayName == ""){
       $message[] = msgPool::required(_("Name"));
     }  
     /* CN is restricted to 20 chars */