MDL-15094 fixed stats regression and prefix cleanup

This commit is contained in:
skodak
2008-06-05 20:35:28 +00:00
parent 68d3c35b3b
commit 5183f0cc5b
10 changed files with 22 additions and 21 deletions
+1 -1
View File
@@ -4522,7 +4522,7 @@ function db_replace($search, $replace) {
$DB->set_debug(true);
foreach ($columns as $column => $data) {
if (in_array($data->meta_type, array('C', 'X'))) { // Text stuff only
$DB->execute("UPDATE {$CFG->prefix}$table SET $column = REPLACE($column, ?, ?)", array($search, $replace));
$DB->execute("UPDATE {".$table."} SET $column = REPLACE($column, ?, ?)", array($search, $replace));
}
}
$DB->set_debug(false);