--- C:/patch/Original/httpbl.module	qua nov 21 18:46:58 2012
+++ C:/patch/Modified/httpbl.module	qui jun 25 10:56:35 2015
@@ -601,10 +601,8 @@
   // evidence says transactions are required -- deekayen
   $txn = db_transaction();
 
-  db_merge('httpbl')
-    ->key(array('hostname' => $ip))
-    ->fields(array('status' => $status, 'expire' => REQUEST_TIME + $offset))
-    ->execute();
+  db_query("REPLACE {httpbl} (hostname, status, expire) VALUES (:ip, :status, :expire)", 
+            array(':ip' => $ip, ':status' => $status, ':expire' => REQUEST_TIME + $offset));
 
   	// Also, conditionally, ban blacklisted IPs in Drupal blocked_ips table
 
