else $user = false;
if($user !== false){
if(!isset($this->users)) $this->users = array();
- $this->users[$user["id"]] = $user;
+ if($user) $this->users[$user["id"]] = $user;
}
return $user;
}
function get_action_status($mod, $controller = "index", $action = "index", $set_status = array()){
$sgbd = $this->sgbd();
+ $status = array();
if($rst = $sgbd->open_data("action_status")){
while($status !==false && $v_rst = $sgbd->fetch_data($rst)){
if(isset($v_rst) && isset($v_rst["action"]) && isset($v_rst["id_status"])){