diff --git a/mod/photos.php b/mod/photos.php index 6cfdd6a99..b4ffb756c 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 4afe6efb6..d55e34f78 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);