diff --git a/httprl.nonblocktest.inc b/httprl.nonblocktest.inc index 751f6c1..fd88e55 100644 --- a/httprl.nonblocktest.inc +++ b/httprl.nonblocktest.inc @@ -50,5 +50,12 @@ function httprl_lock_release($name) { global $locks; unset($locks[$name]); - db_query("DELETE FROM {semaphore} WHERE name = '%s'", $name); + if (substr(VERSION, 0, 1) >= 7) { + db_delete('semaphore') + ->condition('name', $name) + ->execute(); + } + else { + db_query("DELETE FROM {semaphore} WHERE name = '%s'", $name); + } }