mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix saveSetting
This commit is contained in:
@@ -5100,7 +5100,7 @@ function saveSetting($prefix, $nameAndValue, $autoload = 'yes')
|
|||||||
{
|
{
|
||||||
$prefix = strtolower($prefix);
|
$prefix = strtolower($prefix);
|
||||||
$datetimeNow = date('Y-m-d H:i:s');
|
$datetimeNow = date('Y-m-d H:i:s');
|
||||||
$sql = "insert into settings (name, value, created_at, updated_at, autoload) values ";
|
$sql = "insert into `settings` (name, value, created_at, updated_at, autoload) values ";
|
||||||
$data = [];
|
$data = [];
|
||||||
foreach ($nameAndValue as $name => $value) {
|
foreach ($nameAndValue as $name => $value) {
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user