Mercurial > hg > mgallery
changeset 46:e58292065b01
Let arrays through mgConvertExifData() when the type is MG_STR without
force-converting them to strings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 May 2016 18:01:27 +0300 |
parents | d555734526d6 |
children | 1e2b55775a84 |
files | mgtool.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: