Fix EXIF data throwing a notice when showing an image
This commit is contained in:
parent
952594cdce
commit
b856b13235
@ -13,6 +13,10 @@ class PixelFileHandlerTheme extends Themelet {
|
||||
foreach ($exif as $key => $section) {
|
||||
foreach ($section as $name => $val) {
|
||||
if($key == "IFD0") {
|
||||
// Cheap fix for array'd values in EXIF-data
|
||||
if (is_array($val)) {
|
||||
$val = implode(',', $val);
|
||||
}
|
||||
$head .= html_escape("$name: $val")."<br>\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user