diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-15 15:39:44 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-15 17:48:25 +0200 |
commit | 6967d328e22f713e81d7ca32131002077c1ba4ae (patch) | |
tree | e285189ba1d17d961cd4addeacef15a307f58f87 /lib/private/defaults.php | |
parent | 40fe1275de1dcdb3f17027ceeaef19164956e146 (diff) | |
download | nextcloud-server-6967d328e22f713e81d7ca32131002077c1ba4ae.tar.gz nextcloud-server-6967d328e22f713e81d7ca32131002077c1ba4ae.zip |
make sure that 'OC_Theme' exists before checking if the method exists
Diffstat (limited to 'lib/private/defaults.php')
-rw-r--r-- | lib/private/defaults.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/defaults.php b/lib/private/defaults.php index c039c30fbb9..a439bf0d6db 100644 --- a/lib/private/defaults.php +++ b/lib/private/defaults.php @@ -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; |