Bug #9504: Mask might render all available options unavailable
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Jan 2011 19:25:33 +0000 (12:25 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Jan 2011 19:25:33 +0000 (12:25 -0700)
framework/Core/lib/Horde/Themes/Cache.php

index 46f22d0..e5e480a 100644 (file)
@@ -149,9 +149,11 @@ class Horde_Themes_Cache implements Serializable
         } elseif ($entry & self::APP_DEFAULT) {
             $app = $this->_app;
             $theme = 'default';
-        } else {
+        } elseif ($entry & self::HORDE_DEFAULT) {
             $app = 'horde';
             $theme = 'default';
+        } else {
+            return null;
         }
 
         return $this->_getOutput($app, $theme, $item);