Fix path for Effect
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 2 Aug 2009 19:15:19 +0000 (15:15 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 2 Aug 2009 19:15:19 +0000 (15:15 -0400)
framework/Image/lib/Horde/Image/Base.php

index 08c84d8..92ea3e1 100644 (file)
@@ -355,11 +355,11 @@ class Horde_Image_Base
      */
     public function getLoadedEffects()
     {
-        if (empty($this->_loadedEffects)) {
+        if (!count($this->_loadedEffects)) {
             $class = str_replace('Horde_Image_', '', get_class($this));
-
+            $this->_loadedEffects = array();
             // First, load the driver-agnostic Effects.
-            $path = dirname(__FILE__) . '/Image/Effect/';
+            $path = dirname(__FILE__) . '/Effect/';
             if (is_dir($path)) {
                 if ($handle = opendir($path)) {
                     while (($file = readdir($handle)) !== false) {