]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Fix removing falsy text nodes in HTML::tagToBBCodeSub
[friendica.git] / src / Content / Widget.php
index fba027680c7f84f169edf330464273446438413e..f1f62c33fc9141ca98e96989394088115ce25767 100644 (file)
@@ -268,7 +268,7 @@ class Widget
 
                $r = DBA::select('contact', ['network'], $condition, ['group_by' => ['network'], 'order' => ['network']]);
 
-               $nets = array();
+               $nets = [];
                while ($rr = DBA::fetch($r)) {
                        $nets[] = ['ref' => $rr['network'], 'name' => ContactSelector::networkToName($rr['network'])];
                }
@@ -334,7 +334,7 @@ class Widget
                        return '';
                }
 
-               $terms = array();
+               $terms = [];
                foreach (Post\Category::getArray($uid, Post\Category::CATEGORY) as $savedFolderName) {
                        $terms[] = ['ref' => $savedFolderName, 'name' => $savedFolderName];
                }