Check using empty() instead of a comparison to avoid warnings on
unused variables. Clean up the code style.
This commit is contained in:
parent
7d2297033d
commit
30ab3e9420
@ -1,15 +1,15 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
<ul id="g-contact-owner">
|
<ul id="g-contact-owner">
|
||||||
<? if ($ownerLink != "") { ?>
|
<? if (!empty($ownerLink)): ?>
|
||||||
<li style="clear: both;">
|
<li style="clear: both">
|
||||||
<? print ($ownerLink); ?>
|
<?= $ownerLink ?>
|
||||||
</li>
|
</li>
|
||||||
<? } ?>
|
<? endif ?>
|
||||||
<? if ($userLink != "") { ?>
|
|
||||||
<li style="clear: both;">
|
|
||||||
<? print ($userLink); ?>
|
|
||||||
</li>
|
|
||||||
<? } ?>
|
|
||||||
|
|
||||||
|
<? if (!empty($userLink)): ?>
|
||||||
|
<li style="clear: both">
|
||||||
|
<?= ($userLink); ?>
|
||||||
|
</li>
|
||||||
|
<? endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user