mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
Fix some issues with database connections.
install_db_connect() function must return database resource link insert into set syntax is mysql specific git-svn-id: http://piwigo.org/svn/trunk@5781 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1012,15 +1012,15 @@ function conf_update_param($param, $value)
|
||||
$query = '
|
||||
DELETE
|
||||
FROM '.CONFIG_TABLE.'
|
||||
WHERE param = "'.$param.'"
|
||||
WHERE param = \''.$param.'\'
|
||||
;';
|
||||
pwg_query($query);
|
||||
|
||||
$query = '
|
||||
INSERT
|
||||
INTO '.CONFIG_TABLE.'
|
||||
SET param = "'.$param.'"
|
||||
, value = "'.$value.'"
|
||||
(param, value)
|
||||
VALUES(\''.$param.'\', \''.$value.'\')
|
||||
;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user