From: cajus Date: Tue, 2 Aug 2005 11:56:08 +0000 (+0000) Subject: Fixed array handling in post events X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=011be9fb88f527df949920c7d7c76821156052e6;p=gosa.git Fixed array handling in post events git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1047 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 0240722a7..bd9f630f8 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -384,7 +384,9 @@ class plugin if ($command != ""){ /* Walk through attribute list */ foreach ($this->attributes as $attr){ - $command= preg_replace("/%$attr/", $this->$attr, $command); + if (!is_array($this->$attr)){ + $command= preg_replace("/%$attr/", $this->$attr, $command); + } } $command= preg_replace("/%dn/", $this->dn, $command); if (check_command($command)){ @@ -410,7 +412,9 @@ class plugin if ($command != ""){ /* Walk through attribute list */ foreach ($this->attributes as $attr){ - $command= preg_replace("/%$attr/", $this->$attr, $command); + if (!is_array($this->$attr)){ + $command= preg_replace("/%$attr/", $this->$attr, $command); + } } $command= preg_replace("/%dn/", $this->dn, $command); if (check_command($command)){ @@ -436,7 +440,9 @@ class plugin if ($command != ""){ /* Walk through attribute list */ foreach ($this->attributes as $attr){ - $command= preg_replace("/%$attr/", $this->$attr, $command); + if (!is_array($this->$attr)){ + $command= preg_replace("/%$attr/", $this->$attr, $command); + } } $command= preg_replace("/%dn/", $this->dn, $command); if (check_command($command)){