Kaynağa Gözat

- prevent qbf_mail from intercepting messages not meant for it

Frederic G. Marand 15 yıl önce
ebeveyn
işleme
5afeab74a3
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6 1
      qbf.module

+ 6 - 1
qbf.module

@@ -12,7 +12,7 @@
  * @package QBF
  */
 
-// $Id: qbf.module,v 1.9.4.12 2009-03-22 15:15:19 marand Exp $
+// $Id: qbf.module,v 1.9.4.13 2009-03-22 19:40:29 marand Exp $
 
 /**
  * Saved error reporting level.
@@ -914,6 +914,7 @@ function qbf_forms(/* $args = NULL */)
  * List queries owned by a given user.
  *
  * @param int $uid > 0
+ *   Defaults to current user
  * @return array
  */
 function qbf_get_queries_by_user($uid = NULL)
@@ -949,6 +950,10 @@ function qbf_get_queries_by_user($uid = NULL)
  */
 function qbf_mail($key, &$message, $params)
   {
+  if ($key != '_qbf_query_delete')
+    {
+    return;
+    }
   // dsm(array('QBF_mail key' => $key, 'message' => $message, 'params' => $params));
 
   $deletor_tokens = user_mail_tokens($params['deletor'], $params['language']->language);