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:
parent
dc2fba8dab
commit
33a21003c5
@ -62,7 +62,14 @@ class Profile extends Page {
|
|||||||
if($newphoto)
|
if($newphoto)
|
||||||
$_SESSION['user']->data['photo'] = $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');
|
$this->redirect('/profile');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,18 +32,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card p-2">
|
|
||||||
<?php if($admins && count($admins)>0): ?> <h6>Admins</h6> <?php endif; ?>
|
|
||||||
<?php foreach($admins as $adm) : ?>
|
|
||||||
<img src="https://pictshare.net/identicon/<?= $adm['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($adm['name']); ?>" title="<?= escape($adm['firstname'].' '.$adm['lastname']); ?>">
|
|
||||||
<?php endforeach; ?>
|
|
||||||
|
|
||||||
<?php if($members && count($members)>0): ?> <hr/> <h6>Mitglieder</h6> <?php endif; ?>
|
|
||||||
<?php foreach($members as $member) : ?>
|
|
||||||
<img src="https://pictshare.net/identicon/<?= $member['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($member['name']); ?>" title="<?= escape($member['firstname'].' '.$member['lastname']); ?>">
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6" id="sitemain">
|
<div class="col-6" id="sitemain">
|
||||||
<div class="card p-2">
|
<div class="card p-2">
|
||||||
|
Reference in New Issue
Block a user