# HG changeset patch # User Matti Hamalainen # Date 1564802298 -10800 # Node ID cf166dcc6e77b174f7068199a7ade795d50bd543 # Parent 77f85b1f35f2a9f6a9de500fcfda47c7497a4377 Handle arrays in some way (not useful way, tho.) in config dumping. diff -r 77f85b1f35f2 -r cf166dcc6e77 mgallery.inc.php --- a/mgallery.inc.php Fri Aug 02 12:54:51 2019 +0300 +++ b/mgallery.inc.php Sat Aug 03 06:18:18 2019 +0300 @@ -345,8 +345,15 @@ { switch ($mdef[0]) { - case MG_STR : return "\"".$val."\""; - case MG_BOOL : return $val ? "yes" : "no"; + case MG_STR: + if (is_array($val)) + return implode(", ", $val); + else + return "\"".$val."\""; + + case MG_BOOL: + return $val ? "yes" : "no"; + case MG_FLAGS: { $mstr = [];