Commit 18575200 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#210219 follow by myself: update_sql() does not support placeholders, so we...

#210219 follow by myself: update_sql() does not support placeholders, so we should compose our own SQL ourselfs
parent 4bdf24ea
......@@ -2484,9 +2484,8 @@ function system_update_6046() {
*/
function system_update_6047() {
$ret = array();
$ret[] = update_sql("UPDATE {blocks} SET cache = %d WHERE module = '%s' AND delta = '%s'", -1, 'user', '0');
$ret[] = update_sql("UPDATE {blocks} SET cache = %d WHERE module = '%s' AND delta = '%s'", -1, 'user', '1');
$ret[] = update_sql("UPDATE {blocks} SET cache = %d WHERE module = '%s' AND delta = '%s'", -1, 'system', '0');
$ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'user' AND delta IN ('0', '1')");
$ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'system' AND delta = '0'");
return $ret;
}
......
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