mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-16 11:54:44 -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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user