From 8502de22730ed335c929000223e6bc3791248344 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 13 Aug 2008 12:22:34 +0000 Subject: [PATCH] Updated phone objects -Allow '0' as object name too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12209 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/gofon/conference/class_phoneConferenceGeneric.inc | 2 +- gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc index 4decf38ce..d10d1b85f 100644 --- a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc +++ b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc @@ -384,7 +384,7 @@ class conference extends plugin $message[]= msgPool::required(_("PIN")); } - if(empty($this->cn)){ + if($this->cn == ""){ $message[] = msgPool::required(_("Name")); } diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc index 4f6df42f4..b5e20f0e8 100644 --- a/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc +++ b/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc @@ -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 */ -- 2.30.2