mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:50:11 +00:00
Changes:
- reformatted and documented private method - used [] instead of deprecated/discouraged array()
This commit is contained in:
parent
809beeee9d
commit
ae9bd4f3f2
3 changed files with 19 additions and 8 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue