diff --git a/assets/php/common/manager_dao.php b/assets/php/common/manager_dao.php index a3a9284..ad756eb 100644 --- a/assets/php/common/manager_dao.php +++ b/assets/php/common/manager_dao.php @@ -1,6 +1,8 @@ get_prefix(); + include_once($prefix.'assets/php/dao.php'); + include_once('manager.php'); class Manager_DAO extends DAO { diff --git a/panel_admin/manage_managers.php b/panel_admin/manage_managers.php index dded178..3b9c226 100644 --- a/panel_admin/manage_managers.php +++ b/panel_admin/manage_managers.php @@ -21,15 +21,15 @@ $usernames = array(); $email = array(); $rol = array(); - - foreach($managers as $key => $value){ - $ids[$key] = $value->getId(); - $idscinemas[$key] = $value->getIdcinema(); - $usernames[$key] = $value->getUsername(); - $email[$key] = $value->getEmail(); - $rol[$key] = $value->getRoll(); + if(is_array($managers)){ + foreach($managers as $key => $value){ + $ids[$key] = $value->getId(); + $idscinemas[$key] = $value->getIdcinema(); + $usernames[$key] = $value->getUsername(); + $email[$key] = $value->getEmail(); + $rol[$key] = $value->getRoll(); + } } - echo "