with bool?
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
parent
38f65d6ede
commit
dc2fba8dab
@ -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'];
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user