fix inline functions
authorChuck Hagenbuch <chuck@horde.org>
Mon, 26 Jan 2009 03:44:56 +0000 (22:44 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 26 Jan 2009 03:44:56 +0000 (22:44 -0500)
framework/Date_Parser/lib/Horde/Date/Parser/Token.php

index 16b3b70..679a8f4 100644 (file)
@@ -23,7 +23,7 @@ class Horde_Date_Parser_Token
      */
     public function untag($tag_class)
     {
-        $this->tags = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class));
+        $this->tags = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class . ';'));
     }
 
     /**
@@ -39,7 +39,7 @@ class Horde_Date_Parser_Token
      */
     public function getTag($tag_class)
     {
-        $matches = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class));
+        $matches = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class . ';'));
         return array_shift($matches);
     }