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

Merge pull request #9640 from owncloud/fix_9627

make sure that 'OC_Theme' exists before checking if the method exists
parents 01553262 6967d328
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment