Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
fix wrong method exists check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Feb 5, 2014
1 parent d1361ed commit db620a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuel/app/classes/library/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function listAdminNavbar()
\Module::load($file);

if (class_exists($class_name_with_namespace)) {
if (method_exists($class_name_with_namespace, '_define_permission')) {
if (method_exists($class_name_with_namespace, 'admin_navbar')) {
$obj = new $class_name_with_namespace;
$output .= "\t" . call_user_func_array(array($obj, 'admin_navbar'), array()) . "\n";
}
Expand Down

0 comments on commit db620a9

Please sign in to comment.