Hide empty/disabled tabs.
[fa-stable.git] / frontaccounting.php
index 7e2201882a74b9f954ca64cfa97c8f69c5df83c4..ffd9c7f56f27ccb6cbcbeb07a6bce3867c5f55f9 100644 (file)
@@ -44,8 +44,9 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
                        //$this->renderer =& new renderer();
                }
                function add_application(&$app)
-                               {
-                                                       $this->applications[$app->id] = &$app;
+                               {       
+                                       if ($app->enabled) // skip inactive modules
+                                               $this->applications[$app->id] = &$app;
                                }
                function get_application($id)
                                {