Don't produce poisons when logged.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 22 Jan 2011 15:13:28 +0000 (16:13 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 22 Jan 2011 15:13:28 +0000 (16:13 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/function.poison.php

index 6e2c4aa..2a4beaa 100644 (file)
@@ -20,6 +20,9 @@
  ***************************************************************************/
 
 function smarty_function_poison($params, &$smarty) {
+    if (S::logged()) {
+        return '';
+    }
     $count = isset($params['count']) ? $params['count'] : 20;
     $seed  = isset($params['seed']) ? $params['seed'] : date('r');
     Platal::load('poison', 'poison.inc.php');