Commit 798c9129 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4218 (Small performance optimisation and potential loop fixer)

parent d7297c43
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -1525,8 +1525,13 @@ class Forum_driver_cns extends Forum_driver_base
                }
                }
            }
            }
        }
        }

        $out = array();
        $out = array();
        foreach ($rows as $row) {
            if (($hide_hidden) && ($row['g_hidden'] == 1)) {
                $members_groups = function_exists('get_member') ? $GLOBALS['CNS_DRIVER']->get_members_groups(get_member()) : array();
                $members_groups = function_exists('get_member') ? $GLOBALS['CNS_DRIVER']->get_members_groups(get_member()) : array();
            }
        }
        foreach ($rows as $row) {
        foreach ($rows as $row) {
            $name = get_translated_text($row['g_name'], $this->connection);
            $name = get_translated_text($row['g_name'], $this->connection);