Co-authored-by: Philipp <admin+Github@philipp.info>
- $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
if ($newalbum != $album) {
Photo::update(['album' => $newalbum], ['album' => $album, 'uid' => $page_owner_uid]);
// Update the photo albums cache
- $term = trim($_GET['term']);
+ $term = trim($_GET['term'] ?? '');
// no commas allowed
$term = str_replace([',',' ', '<', '>'],['','_', '', ''], $term);
// no commas allowed
$term = str_replace([',',' ', '<', '>'],['','_', '', ''], $term);