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:
commit
7d8a8e78fa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue