Fix for PHP5.4

This commit is contained in:
Olivier Perez 2015-04-15 13:23:19 +02:00
parent 3fb351dbce
commit f6be93840d
1 changed files with 1 additions and 1 deletions

View File

@ -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>