diff --git a/web/models/User.model.php b/web/models/User.model.php index 8676ffa..388164c 100644 --- a/web/models/User.model.php +++ b/web/models/User.model.php @@ -17,7 +17,7 @@ class User extends Model { 'dogs' => ['type'=> 'array','default'=>[]], 'tournaments' => ['type'=> 'array','default'=>[]], 'photo' => ['type'=>'text','default'=>'https://pictshare.net/pj7vzx.jpg'], - 'active' => ['type'=>'int','default'=>0] + 'active' => ['type'=>'bool','default'=>0] ); protected $hidden = ['password','token']; diff --git a/web/pages/profile/controller.php b/web/pages/profile/controller.php index aa3171f..931f281 100644 --- a/web/pages/profile/controller.php +++ b/web/pages/profile/controller.php @@ -62,7 +62,6 @@ class Profile extends Page { if($newphoto) $_SESSION['user']->data['photo'] = $newphoto; - var_dump($_SESSION['user']->data); $_SESSION['user']->save(); $this->redirect('/profile'); }