From 011be9fb88f527df949920c7d7c76821156052e6 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 2 Aug 2005 11:56:08 +0000 Subject: [PATCH] Fixed array handling in post events git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1047 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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)){ -- 2.30.2