mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 01:09:19 -04:00
#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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user