From: janw Date: Fri, 21 Apr 2006 08:41:09 +0000 (+0000) Subject: $classes may be null X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75617ddbfbcefeae3de7988e46badcb8227f0dc4;p=gosa.git $classes may be null git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3080 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/generic/references/class_reference.inc b/plugins/generic/references/class_reference.inc index 43d945dbe..3f53973be 100644 --- a/plugins/generic/references/class_reference.inc +++ b/plugins/generic/references/class_reference.inc @@ -154,11 +154,13 @@ class reference extends plugin function createContentString($classes) { $result= ""; - foreach ($classes as $class){ - if (isset($this->obtypes[$class])){ - $result.= "\"\" ".$this->obtypes[$class]['text']." "; + if(!is_null($classes)) { + foreach ($classes as $class){ + if (isset($this->obtypes[$class])){ + $result.= "\"\" ".$this->obtypes[$class]['text']." "; + } } - } + } return (preg_replace('/ $/', '', $result)); }