mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-30 06:29:02 +08:00
Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare
This commit is contained in:
@@ -23,10 +23,12 @@ if (empty($see)) {
|
||||
} else {
|
||||
echo '<p>See also:</p><ul>';
|
||||
foreach ($see as $ref) {
|
||||
if (substr_compare($ref, '>', -1, 1)) {
|
||||
$ref .= '.';
|
||||
if (!empty($ref)) {
|
||||
if (substr_compare($ref, '>', -1, 1)) {
|
||||
$ref .= '.';
|
||||
}
|
||||
echo "<li>$ref</li>";
|
||||
}
|
||||
echo "<li>$ref</li>";
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user