Skip to content
Snippets Groups Projects
Commit f6be9384 authored by Olivier Perez's avatar Olivier Perez
Browse files

Fix for PHP5.4

parent 3fb351db
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@
</div>
{/if}
</div>
{if $admin || !empty(preg_replace('/[ \r\n]/', '', $poll->description))}
{if $admin || preg_match('/[^ \r\n]/', $poll->description)}
<div class="form-group col-md-8" id="description-form">
<label class="control-label">{__('Generic', 'Description')}{if $admin && !$expired} <button class="btn btn-link btn-sm btn-edit" title="{__('PollInfo', 'Edit the description')}"><span class="glyphicon glyphicon-pencil"></span><span class="sr-only">{__('Generic', 'Edit')}</span></button>{/if}</label>
<pre class="form-control-static well poll-description">{$poll->description|html}</pre>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment