Skip to content
Snippets Groups Projects
Commit b284a1b9 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3340025 by Anybody, Daniel Korte, mandclu: SQLSTATE[42S02]: Base table...

Issue #3340025 by Anybody, Daniel Korte, mandclu: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal7.temp_fix_better_formats' doesn't exist
parent 9f63a32a
No related branches found
No related tags found
1 merge request!5Issue #3340025: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal7.temp_fix_better_formats' doesn't exist
......@@ -239,7 +239,7 @@ function better_formats_update_7102(&$sandbox) {
}
if (empty($sandbox)) {
$sandbox['max'] = db_query("SELECT COUNT(*) FROM temp_fix_better_formats WHERE fixed = 0")->fetchField();
$sandbox['max'] = db_query("SELECT COUNT(*) FROM {temp_fix_better_formats} WHERE fixed = 0")->fetchField();
if (empty($sandbox['max'])) {
return t('No records to fix.');
}
......@@ -260,7 +260,7 @@ function better_formats_update_7102(&$sandbox) {
// The default format available for the site.
$default_format = filter_default_format();
$results = db_query_range("SELECT * FROM temp_fix_better_formats WHERE fixed = 0", 0, $limit);
$results = db_query_range("SELECT * FROM {temp_fix_better_formats} WHERE fixed = 0", 0, $limit);
if ($results->rowCount() > 0) {
foreach ($results as $record) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment