Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
parent
cfac13790b
commit
a12144bf61
|
@ -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 New Issue
Block a user