From 8034568c13638be64307261be146e1fb63cc6070 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 8 May 2024 12:57:39 -0400 Subject: [PATCH] [fix] Another deprecation warning --- src/include/common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/common.php b/src/include/common.php index a638a7e..44e576b 100644 --- a/src/include/common.php +++ b/src/include/common.php @@ -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']);