Ejemplo n.º 1
0
 static function updateUserActive($id = false)
 {
     if (!$id && self::isLogin()) {
         $user = self::userLogin();
         $id = (int) $user['id'];
     }
     if (!$id) {
         return false;
     }
     $model = new connectionUserModel();
     $model->updateActive($id);
     return true;
 }