SiteConfig

* always place newly added php-configurations in the misc-category
This commit is contained in:
Sarjuuk
2017-03-19 23:54:54 +01:00
parent 5360b09d0f
commit f0231c8d9f
2 changed files with 2 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ class AjaxAdmin extends AjaxHandler
if (DB::Aowow()->selectCell('SELECT 1 FROM ?_config WHERE `flags` & ?d AND `key` = ?', CON_FLAG_PHP, $key))
return 'this configuration option is already in use';
DB::Aowow()->query('INSERT IGNORE INTO ?_config (`key`, `value`, `flags`) VALUES (?, ?, ?d)', $key, $val, CON_FLAG_TYPE_STRING | CON_FLAG_PHP);
DB::Aowow()->query('INSERT IGNORE INTO ?_config (`key`, `value`, `cat`, `flags`) VALUES (?, ?, 0, ?d)', $key, $val, CON_FLAG_TYPE_STRING | CON_FLAG_PHP);
return '';
}