summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Coleman2012-08-03 19:37:41 (GMT)
committer Jorrit Schippers2012-08-05 18:05:50 (GMT)
commit3831e76e735675bf981f4e39e098985af9f1176f (patch)
tree15fda6ef24f0c9b240bfc6191fd1e6ef026fc42b
parent06b238a10733a74e97e602ef9bc8f5dfcd12767c (diff)
Issue #1712398 by Ben Coleman: Fixed db_query quoting for Postgres6.x-2.3
-rw-r--r--includes/videojs.admin.inc2
-rw-r--r--videojs.install2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/videojs.admin.inc b/includes/videojs.admin.inc
index 7e8756c..3a47575 100644
--- a/includes/videojs.admin.inc
+++ b/includes/videojs.admin.inc
@@ -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']);
diff --git a/videojs.install b/videojs.install
index 6a2975b..fd3a795 100644
--- a/videojs.install
+++ b/videojs.install
@@ -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_%%'");
}
/**