aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-04-10 19:49:30 +0000
committernikrou <nikrou@piwigo.org>2010-04-10 19:49:30 +0000
commit8ed51d84970bd1ce44a093d0ae5801a7c656b821 (patch)
tree6d80e4dcf9c8a44503b735a205228db7548c84e0 /include
parent3d20e56ada54a50b2c85dff71c5ee8f6e9a81a46 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/functions.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 7519c3239..50348f029 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -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);
}