mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:40:17 +00:00
Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
parent
cfac13790b
commit
a12144bf61
2 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ function photos_post(App $a)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RENAME photo album
|
// RENAME photo album
|
||||||
$newalbum = trim($_POST['albumname']);
|
$newalbum = trim($_POST['albumname'] ?? '');
|
||||||
if ($newalbum != $album) {
|
if ($newalbum != $album) {
|
||||||
Photo::update(['album' => $newalbum], ['album' => $album, 'uid' => $page_owner_uid]);
|
Photo::update(['album' => $newalbum], ['album' => $album, 'uid' => $page_owner_uid]);
|
||||||
// Update the photo albums cache
|
// Update the photo albums cache
|
||||||
|
|
|
@ -41,7 +41,7 @@ function tagger_content(App $a) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$term = trim($_GET['term']);
|
$term = trim($_GET['term'] ?? '');
|
||||||
// no commas allowed
|
// no commas allowed
|
||||||
$term = str_replace([',',' ', '<', '>'],['','_', '', ''], $term);
|
$term = str_replace([',',' ', '<', '>'],['','_', '', ''], $term);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue