diff --git a/mod/photos.php b/mod/photos.php index 6cfdd6a998..b4ffb756c1 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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 diff --git a/mod/tagger.php b/mod/tagger.php index 4afe6efb67..d55e34f78b 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -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);