mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
handle iptc data with unknown key
This commit is contained in:
parent
f53b6fd3fd
commit
68b8f31a25
|
@ -217,7 +217,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
|
|||
$retStr = '<table class="table">';
|
||||
if(is_array($arr)) {
|
||||
foreach ($arr as $key=>$val) {
|
||||
$retStr .= '<tr><td>' . $iptcHeaderArray[$key] . '</td><td>' . htmlspecialchars(implode('; ', $val)) . '</td></tr>';
|
||||
if(isset($iptcHeaderArray[$key]))
|
||||
$retStr .= '<tr><td>' . $iptcHeaderArray[$key] . '</td><td>' . htmlspecialchars(implode('; ', $val)) . '</td></tr>';
|
||||
else
|
||||
$retStr .= '<tr><td>' . $key . '</td><td>' . htmlspecialchars(implode('; ', $val)) . '</td></tr>';
|
||||
}
|
||||
}
|
||||
$retStr .= '</table>';
|
||||
|
|
Loading…
Reference in New Issue
Block a user