diff options
Diffstat (limited to 'apis/getconfig.inc.php')
-rw-r--r-- | apis/getconfig.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apis/getconfig.inc.php b/apis/getconfig.inc.php index a3d2bd91..6edb55be 100644 --- a/apis/getconfig.inc.php +++ b/apis/getconfig.inc.php @@ -5,5 +5,6 @@ $res = Database::simpleQuery('SELECT setting.setting, setting.defaultvalue, sett LEFT JOIN setting_global AS tbl USING (setting) ORDER BY setting ASC'); // TODO: Add setting groups and sort order while ($row = $res->fetch(PDO::FETCH_ASSOC)) { + if (empty($row['value'])) $row['value'] = $row['defaultvalue']; echo $row['setting'] . "='" . str_replace("'", "'\"'\"'", $row['value']) . "'\n"; } |