From f6be93840d4569def106d03e1a16d85e4bdf3830 Mon Sep 17 00:00:00 2001 From: Olivier Perez Date: Wed, 15 Apr 2015 13:23:19 +0200 Subject: [PATCH] Fix for PHP5.4 --- tpl/part/poll_info.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/part/poll_info.tpl b/tpl/part/poll_info.tpl index de52f6b..9c0f7f6 100644 --- a/tpl/part/poll_info.tpl +++ b/tpl/part/poll_info.tpl @@ -72,7 +72,7 @@ {/if} - {if $admin || !empty(preg_replace('/[ \r\n]/', '', $poll->description))} + {if $admin || preg_match('/[^ \r\n]/', $poll->description)}
{$poll->description|html}