]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure that 'OC_Theme' exists before checking if the method exists
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 15 Jul 2014 13:39:44 +0000 (15:39 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 15 Jul 2014 15:48:25 +0000 (17:48 +0200)
lib/private/defaults.php

index c039c30fbb95feceebabcd23fdb2847644b6fd67..a439bf0d6db67d97aa38948917684deafb0cdaf2 100644 (file)
@@ -48,7 +48,7 @@ class OC_Defaults {
         * @param string $method
         */
        private function themeExist($method) {
-               if (OC_Util::getTheme() !== '' && method_exists('OC_Theme', $method)) {
+               if (isset($this->theme) && method_exists($this->theme, $method)) {
                        return true;
                }
                return false;