need to cast the theme objects too
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 21:59:07 +0000 (17:59 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 22:03:06 +0000 (18:03 -0400)
framework/Tree/lib/Horde/Tree.php

index 3612d28..e5e25e7 100644 (file)
@@ -423,7 +423,7 @@ class Horde_Tree
             // Set only allowed and non-null params.
             if (in_array($param_id, $allowed) && !is_null($param_val)) {
                 // Cast Horde_Url objects
-                if ($param_id == 'url') {
+                if ($param_id == 'url' || $param_id == 'icondir') {
                     $param_val = (string)$param_val;
                 }
                 $this->_nodes[$id][$param_id] = $param_val;