Replace x() by isset(), !empty() or defaults()
- Remove extraneous parentheses around empty() calls - Remove duplicate calls to intval(), count() or strlen() after empty() - Replace ternary operators outputting binary value with empty() return value - Rewrite defaults() without x()
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ function common_content(App $a)
|
||||
'url' => 'contact/' . $cid
|
||||
]);
|
||||
|
||||
if (!x($a->page, 'aside')) {
|
||||
if (empty($a->page['aside'])) {
|
||||
$a->page['aside'] = '';
|
||||
}
|
||||
$a->page['aside'] .= $vcard_widget;
|
||||
|
||||
Reference in New Issue
Block a user