Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Dec 18, 2024
1 parent f665d78 commit daec505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/php/Upgrade/Version/V8.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ private function upgradeModules()
}

/* Update how many rows that have been migrated */
$query = $this->db->prepare(
$numberOfRowsQuery = $this->db->prepare(
"SELECT COUNT(*)
FROM {$this->db->prefix}postmeta
WHERE post_id = %d AND meta_key LIKE ",
$module->ID,
) . "'{$this->newKey}_%_title'";
update_post_meta($module->ID, 'manual_inputs', $this->db->get_var($query) ?? 0);
update_post_meta($module->ID, 'manual_inputs', $this->db->get_var($numberOfRowsQuery) ?? 0);

return true;
}
Expand Down

0 comments on commit daec505

Please sign in to comment.