This commit is contained in:
Václav Španinger 2020-12-09 12:42:26 +01:00
parent e95435a707
commit 42443c8b58

View File

@ -4,7 +4,8 @@ class SettingsManager{
return Db::loadAll ("SELECT * FROM settings");
}
static function getByName($settingName) {
static function getByName($settingName, $group = '') {
if ($group != '') return Db::loadOne("SELECT * FROM settings WHERE name = ? AND group = ?", array($settingName, $group));
return Db::loadOne("SELECT * FROM settings WHERE name = ?", array($settingName));
}