diff options
author | shadlaws <shad@shadlaws.com> | 2013-03-02 13:25:10 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-03-02 13:25:10 +0100 |
commit | 9b9f1a7b07daecf2251770e4f49838f22cb58a2a (patch) | |
tree | 6d4306e8e9b4edbcba700a1910d6d0a03ce0edde /modules/gallery/libraries/IdentityProvider.php | |
parent | 0d05e91cd3c5050c25133c864f8b789f499d8e17 (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/IdentityProvider.php')
-rw-r--r-- | modules/gallery/libraries/IdentityProvider.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/libraries/IdentityProvider.php b/modules/gallery/libraries/IdentityProvider.php index 23368a6a..525e1695 100644 --- a/modules/gallery/libraries/IdentityProvider.php +++ b/modules/gallery/libraries/IdentityProvider.php @@ -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"); } |