1
0
Fork 0

Apply suggestions from code review

Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
Michael Vogel 2021-11-07 13:57:24 +01:00 committed by GitHub
parent cfac13790b
commit a12144bf61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

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