Created
April 19, 2022 07:02
-
-
Save goodwoor/b093a4ba7187ecab94f6083bd4f13538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/frontend/companies.php b/app/controllers/frontend/companies.php | |
index 85b3d3b47d..9c22d88763 100644 | |
--- a/app/controllers/frontend/companies.php | |
+++ b/app/controllers/frontend/companies.php | |
@@ -347,6 +347,8 @@ if ($mode === 'view') { | |
} | |
} | |
fn_add_breadcrumb($category_data['category']); | |
+ } elseif ($category_data === false) { | |
+ return [CONTROLLER_STATUS_NO_PAGE]; | |
} | |
// Get subcategories list for current category |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment