Skip to content
Snippets Groups Projects
Commit 3831e76e authored by Ben Coleman's avatar Ben Coleman Committed by Jorrit Schippers
Browse files

Issue #1712398 by Ben Coleman: Fixed db_query quoting for Postgres

parent 06b238a1
No related branches found
Tags 6.x-2.3
No related merge requests found
......@@ -99,7 +99,7 @@ function videojs_settings_form_submit($form, &$form_state) {
// Clean all variables before system_settings_form_submit() creates new ones.
// This prevents variables for removed content types remaining in the variables table.
db_query('DELETE FROM {variable} WHERE name LIKE "videojs_%%"');
db_query("DELETE FROM {variable} WHERE name LIKE 'videojs_%%'");
// Store width & height as ints, autoplay as bool
$v['videojs_height'] = intval($v['videojs_height']);
......
......@@ -37,7 +37,7 @@ function videojs_requirements($phase) {
* Implementation of hook_uninstall().
*/
function videojs_uninstall() {
db_query('DELETE FROM {variable} WHERE name LIKE "videojs_%%"');
db_query("DELETE FROM {variable} WHERE name LIKE 'videojs_%%'");
}
/**
......
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