X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=4d756583159bb4ea72102bb80a8ce33647bf02e4;hb=ab77f48b8b4966dc96c97215b4781d9fb32e61a7;hp=6cfdd6a998a558bb611704c350fdcc58eebf5270;hpb=cfac13790bc1948697b76b9a6134b61c7bb3173b;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 6cfdd6a998..4d75658315 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 @@ -1432,7 +1432,7 @@ function photos_content(App $a) ]; $title_e = $item['title']; - $body_e = BBCode::convert($item['body']); + $body_e = BBCode::convertForUriId($item['uri-id'], $item['body']); $comments .= Renderer::replaceMacros($template,[ '$id' => $item['id'],