setUserConfigVar(): use REPLACE INTO consistently
authorDenis Ovsienko <denis@ovsienko.info>
Tue, 23 May 2017 11:27:04 +0000 (12:27 +0100)
committerDenis Ovsienko <denis@ovsienko.info>
Tue, 23 May 2017 11:27:04 +0000 (12:27 +0100)
wwwroot/inc/database.php

index e4d74ef5f8868001532486090bb7daaba2e2edec..10acae466f31cd4244e363ac885e3ccf25523a91 100644 (file)
@@ -5709,7 +5709,7 @@ function setUserConfigVar ($varname, $varvalue)
        // Update cache only if the changes went into DB.
        usePreparedExecuteBlade
        (
-               'REPLACE UserConfig SET varvalue=?, varname=?, user=?',
+               'REPLACE INTO UserConfig SET varvalue=?, varname=?, user=?',
                array ($varvalue, $varname, $remote_username)
        );
        $configCache[$varname]['varvalue'] = $varvalue;