Merge pull request #9640 from owncloud/fix_9627

make sure that 'OC_Theme' exists before checking if the method exists
This commit is contained in:
Björn Schießle 2014-07-16 10:12:52 +02:00
commit 7d8a8e78fa
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class OC_Defaults {
* @param string $method * @param string $method
*/ */
private function themeExist($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 true;
} }
return false; return false;