From 75617ddbfbcefeae3de7988e46badcb8227f0dc4 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 21 Apr 2006 08:41:09 +0000 Subject: [PATCH] $classes may be null git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3080 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/generic/references/class_reference.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)); } -- 2.30.2