Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
parent
cfac13790b
commit
a12144bf61
2 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ function photos_post(App $a)
|
|||
}
|
||||
|
||||
// RENAME photo album
|
||||
$newalbum = trim($_POST['albumname']);
|
||||
$newalbum = trim($_POST['albumname'] ?? '');
|
||||
if ($newalbum != $album) {
|
||||
Photo::update(['album' => $newalbum], ['album' => $album, 'uid' => $page_owner_uid]);
|
||||
// Update the photo albums cache
|
||||
|
|
|
@ -41,7 +41,7 @@ function tagger_content(App $a) {
|
|||
return;
|
||||
}
|
||||
|
||||
$term = trim($_GET['term']);
|
||||
$term = trim($_GET['term'] ?? '');
|
||||
// no commas allowed
|
||||
$term = str_replace([',',' ', '<', '>'],['','_', '', ''], $term);
|
||||
|
||||
|
|
Loading…
Reference in a new issue