X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.poison.php;h=8443820fb9734fbe84390aab804bef7c4a703aa1;hb=49f0caac6cf944a238401a74bce2c37c7c99583b;hp=6e2c4aa7573aa07ed0026b18252e736ad8a0f668;hpb=d645ceb701b0e8aa1de2e5271bed35e56ef169f1;p=platal.git diff --git a/plugins/function.poison.php b/plugins/function.poison.php index 6e2c4aa..8443820 100644 --- a/plugins/function.poison.php +++ b/plugins/function.poison.php @@ -19,7 +19,10 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -function smarty_function_poison($params, &$smarty) { +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');