diff mgtool.php @ 114:c803235bd0f9

Implement flag config option type.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 20 Mar 2017 15:37:19 +0200
parents 9da8bab49711
children eac2cf04261a
line wrap: on
line diff
--- a/mgtool.php	Mon Mar 20 14:47:56 2017 +0200
+++ b/mgtool.php	Mon Mar 20 15:37:19 2017 +0200
@@ -853,14 +853,14 @@
       $sval = mgGetSetting($key);
       if ($cmd == "dump")
       {
-        printf("%-20s = %s\n", $key, mgGetDValStr($dval[0], $sval));
+        printf("%-20s = %s\n", $key, mgGetDValStr($dval, $sval));
       }
       else
       {
         printf("%-20s = %s%s\n",
           $key,
-          mgGetDValStr($dval[0], $sval),
-          ($dval[1] !== NULL && $sval !== $dval[1]) ? " (default: ".mgGetDValStr($dval[0], $dval[1]).")" : "");
+          mgGetDValStr($dval, $sval),
+          ($dval[1] !== NULL && $sval !== $dval[1]) ? " (default: ".mgGetDValStr($dval, $dval[1]).")" : "");
       }
     }
     break;