# HG changeset patch # User Matti Hamalainen # Date 1464188487 -10800 # Node ID e58292065b01a87a9c8cda952150268bd2bf863d # Parent d555734526d60946fa621a83f37360754e733eef Let arrays through mgConvertExifData() when the type is MG_STR without force-converting them to strings. diff -r d555734526d6 -r e58292065b01 mgtool.php --- a/mgtool.php Wed May 25 14:37:52 2016 +0300 +++ b/mgtool.php Wed May 25 18:01:27 2016 +0300 @@ -111,7 +111,7 @@ { switch ($vtype) { - case MG_STR: return (string) $val; + case MG_STR: return is_array($val) ? $val : (string) $val; case MG_INT: return intval($val); case MG_BOOL: return intval($val); case MG_DVA: