mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 14:11:01 -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:
@@ -81,7 +81,8 @@ class IdentityProvider_Core {
|
||||
|
||||
module::set_var("gallery", "identity_provider", $new_provider);
|
||||
|
||||
if (method_exists("{$new_provider}_installer", "initialize")) {
|
||||
if (class_exists("{$new_provider}_installer") &&
|
||||
method_exists("{$new_provider}_installer", "initialize")) {
|
||||
call_user_func("{$new_provider}_installer::initialize");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user