[fix] Another deprecation warning
This commit is contained in:
parent
1340a0f828
commit
8034568c13
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue