counters: just merge everything at once

This commit is contained in:
Andrew Dolgov 2021-02-15 17:01:05 +03:00
parent 39604bedef
commit d4157b9e4e
1 changed files with 5 additions and 6 deletions

View File

@ -2,14 +2,13 @@
class Counters {
static function get_all() {
$data = self::get_global();
$data = array_merge($data, self::get_virt(),
return array_merge(
self::get_global(),
self::get_virt(),
self::get_labels(),
self::get_feeds(),
self::get_cats());
return $data;
self::get_cats()
);
}
static private function get_cat_children($cat_id, $owner_uid) {