admanage validate starttime&end_time and announce check peer

This commit is contained in:
xiaomlove
2022-02-01 16:05:44 +08:00
parent 8d6d9d8c15
commit ed7d51739a
6 changed files with 48 additions and 36 deletions
+6 -4
View File
@@ -291,10 +291,12 @@ function get_setting($name = null)
$result = sql_query($sql);
while ($row = mysql_fetch_assoc($result)) {
$value = $row['value'];
$arr = json_decode($value, true);
if (is_array($arr)) {
$value = $arr;
}
if (!is_null($value)) {
$arr = json_decode($value, true);
if (is_array($arr)) {
$value = $arr;
}
}
arr_set($settings, $row['name'], $value);
}
}