error message
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
This commit is contained in:
@ -62,7 +62,14 @@ class Profile extends Page {
|
||||
if($newphoto)
|
||||
$_SESSION['user']->data['photo'] = $newphoto;
|
||||
|
||||
$_SESSION['user']->save();
|
||||
try{
|
||||
$_SESSION['user']->save();
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
return partial('error.html', ['errorMessage' => 'Fehler beim Speichern des Profils: '.$e->getMessage()]);
|
||||
}
|
||||
|
||||
$this->redirect('/profile');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user