summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Admin_View.php
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-03-02 13:25:10 +0100
committershadlaws <shad@shadlaws.com>2013-03-02 13:25:10 +0100
commit9b9f1a7b07daecf2251770e4f49838f22cb58a2a (patch)
tree6d4306e8e9b4edbcba700a1910d6d0a03ce0edde /modules/gallery/libraries/Admin_View.php
parent0d05e91cd3c5050c25133c864f8b789f499d8e17 (diff)
#2031 - Add class_exists() before method_exists() if class existence is unknown.
- fixed all instances of this in core code - deleted previous Zend Guard Loader workaround in MY_Kohana.php - updated Bootstrap.php to reflect deleted MY_Kohana.php
Diffstat (limited to 'modules/gallery/libraries/Admin_View.php')
-rw-r--r--modules/gallery/libraries/Admin_View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php
index 83163868..62645d18 100644
--- a/modules/gallery/libraries/Admin_View.php
+++ b/modules/gallery/libraries/Admin_View.php
@@ -95,7 +95,7 @@ class Admin_View_Core extends Gallery_View {
$blocks = array();
foreach (module::active() as $module) {
$helper_class = "{$module->name}_theme";
- if (method_exists($helper_class, $function)) {
+ if (class_exists($helper_class) && method_exists($helper_class, $function)) {
$blocks[] = call_user_func_array(
array($helper_class, $function),
array_merge(array($this), $args));