Commit 1001c774 by pupi1985

Turned REPLACE statements into INSERT..ON DUPLICATE KEY UPDATE in db/options.php

parent dfbe9d2e
......@@ -32,7 +32,8 @@
*/
{
qa_db_query_sub(
'REPLACE ^options (title, content) VALUES ($, $)',
'INSERT INTO ^options (title, content) VALUES ($, $) ' .
'ON DUPLICATE KEY UPDATE content = VALUES(content)',
$name, $value
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment