Make sure we're returning a string in __toString
authorChuck Hagenbuch <chuck@horde.org>
Fri, 19 Nov 2010 18:07:09 +0000 (13:07 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 19 Nov 2010 18:07:09 +0000 (13:07 -0500)
framework/Core/lib/Horde/Themes/Element.php

index 0b32934..c087e62 100644 (file)
@@ -90,7 +90,7 @@ class Horde_Themes_Element
      */
     public function __toString()
     {
-        return $this->uri;
+        return (string)$this->uri;
     }
 
     /**