? head.patch
Index: pqp.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pqp/pqp.module,v
retrieving revision 1.1.2.17.2.5
diff -u -p -r1.1.2.17.2.5 pqp.module
--- pqp.module	21 May 2009 08:47:57 -0000	1.1.2.17.2.5
+++ pqp.module	22 May 2009 13:51:02 -0000
@@ -138,8 +138,8 @@ function pqp_init() {
       }
     
       // Cleanup task, no need for hook_cron, we're debugging
-      $pqp_key = $_POST['pqp_key'];
-      $cleanup = db_query('SELECT * FROM variable WHERE name LIKE "pqp_key_%"');
+      $pqp_key = isset($_POST['pqp_key']) ? $_POST('pqp_key') : NULL;
+      $cleanup = db_query('SELECT * FROM variable WHERE name LIKE :pqp_key', array(':pqp_key' => 'pqp_key_%'));
       while ($leftover = db_fetch_object($cleanup)) {
         if (!empty($pqp_key) && $leftover->name != $pqp_key) {
           variable_del($leftover->name);
