diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-03-02 14:02:00 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-03-02 14:02:00 -0800 |
commit | a81e85d3f178ad9081a5e6191d8f99370fdde123 (patch) | |
tree | 6d4306e8e9b4edbcba700a1910d6d0a03ce0edde /modules/gallery/controllers/admin.php | |
parent | 0d05e91cd3c5050c25133c864f8b789f499d8e17 (diff) | |
parent | 9b9f1a7b07daecf2251770e4f49838f22cb58a2a (diff) |
Merge pull request #176 from shadlaws/fix_2031
#2031 - Add class_exists() before method_exists() if class existence is unknown.
Diffstat (limited to 'modules/gallery/controllers/admin.php')
-rw-r--r-- | modules/gallery/controllers/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/admin.php b/modules/gallery/controllers/admin.php index c9d944cc..b35a9299 100644 --- a/modules/gallery/controllers/admin.php +++ b/modules/gallery/controllers/admin.php @@ -55,7 +55,7 @@ class Admin_Controller extends Controller { $method = "index"; } - if (!method_exists($controller_name, $method)) { + if (!class_exists($controller_name) || !method_exists($controller_name, $method)) { throw new Kohana_404_Exception(); } |