]> git.mxchange.org Git - friendica.git/commitdiff
Fix selected timelines
authorMichael <heluecht@pirati.ca>
Tue, 19 Sep 2023 09:23:27 +0000 (09:23 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 19 Sep 2023 09:23:27 +0000 (09:23 +0000)
src/Module/Conversation/Network.php

index 04f3f232f53fcfaf637666e26876777c708268ec..095b2ccebe72dacec6c4d2476f69aa3604763c31 100644 (file)
@@ -289,9 +289,9 @@ class Network extends Timeline
                if (!empty($network_timelines)) {
                        $tabs = [];
 
-                       foreach (array_column($arr['tabs'], 'code') as $tab) {
-                               if (in_array($tab, $network_timelines)) {
-                                       $tabs[] = $arr['tabs'][$tab];
+                       foreach ($arr['tabs'] as $tab) {
+                               if (in_array($tab['code'], $network_timelines)) {
+                                       $tabs[] = $tab;
                                }
                        }
                } else {