Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goodwoor/b093a4ba7187ecab94f6083bd4f13538 to your computer and use it in GitHub Desktop.
Save goodwoor/b093a4ba7187ecab94f6083bd4f13538 to your computer and use it in GitHub Desktop.
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