Skip to content
Snippets Groups Projects
Commit 6967d328 authored by Björn Schießle's avatar Björn Schießle
Browse files

make sure that 'OC_Theme' exists before checking if the method exists

parent 40fe1275
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ class OC_Defaults { ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment