error message
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s

This commit is contained in:
2023-10-30 22:45:42 +01:00
parent dc2fba8dab
commit 33a21003c5
2 changed files with 8 additions and 13 deletions

View File

@ -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');
}