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

This commit is contained in:
Bjoern Schiessle 2014-07-15 15:39:44 +02:00
parent 40fe1275de
commit 6967d328e2
1 changed files with 1 additions and 1 deletions

View File

@ -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;