with bool?
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s

This commit is contained in:
Chris 2023-10-30 22:41:11 +01:00
parent 38f65d6ede
commit dc2fba8dab
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class User extends Model {
'dogs' => ['type'=> 'array','default'=>[]], 'dogs' => ['type'=> 'array','default'=>[]],
'tournaments' => ['type'=> 'array','default'=>[]], 'tournaments' => ['type'=> 'array','default'=>[]],
'photo' => ['type'=>'text','default'=>'https://pictshare.net/pj7vzx.jpg'], 'photo' => ['type'=>'text','default'=>'https://pictshare.net/pj7vzx.jpg'],
'active' => ['type'=>'int','default'=>0] 'active' => ['type'=>'bool','default'=>0]
); );
protected $hidden = ['password','token']; protected $hidden = ['password','token'];

View File

@ -62,7 +62,6 @@ class Profile extends Page {
if($newphoto) if($newphoto)
$_SESSION['user']->data['photo'] = $newphoto; $_SESSION['user']->data['photo'] = $newphoto;
var_dump($_SESSION['user']->data);
$_SESSION['user']->save(); $_SESSION['user']->save();
$this->redirect('/profile'); $this->redirect('/profile');
} }