Improve PHP 7.2 compatibility (#3572)
Fixes #3570. Credit to @danharrin
This commit is contained in:
parent
667b82e6ce
commit
3f449ea3bd
|
|
@ -1,4 +1,4 @@
|
|||
<?php if (count($formModel->referer) > 0): ?>
|
||||
<?php if ($formModel->referer && count($formModel->referer) > 0): ?>
|
||||
<div class="form-control control-simplelist with-icons">
|
||||
<ul>
|
||||
<?php foreach ((array) $formModel->referer as $referer): ?>
|
||||
|
|
@ -8,4 +8,4 @@
|
|||
</div>
|
||||
<?php else: ?>
|
||||
<div class="form-control"><em>There were no detected referers to this URL.</em></div>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue