[fix] Another deprecation warning

This commit is contained in:
Solomon Peachy 2024-05-08 12:57:39 -04:00
parent 1340a0f828
commit 8034568c13

View file

@ -145,7 +145,9 @@ function get_path_to($database, $type, $id, $html = TRUE) {
for ($i = 0 ; $i < pg_num_rows($data); $i++) {
$row = pg_fetch_assoc($data);
$row['caption'] = strip_tags($row['caption']);
if ($row['caption'] !== NULL) {
$row['caption'] = strip_tags($row['caption']);
}
$row['caption'] = makeZanza($row['caption'], $strings['photo_no_title']);
if ($html) {
$stack[] = emit_a(generate_link($type, $row['identifier']), $row['caption']);