Skip to content

Instantly share code, notes, and snippets.

@juanramon
Created March 19, 2013 08:52
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 juanramon/5194609 to your computer and use it in GitHub Desktop.
Save juanramon/5194609 to your computer and use it in GitHub Desktop.
diff --git a/oc-includes/osclass/controller/search.php b/oc-includes/osclass/controller/search.php
index 402a079..5e281c4 100755
--- a/oc-includes/osclass/controller/search.php
+++ b/oc-includes/osclass/controller/search.php
@@ -377,8 +377,8 @@
$this->_exportVariableToView('search_alert', base64_encode($json));
- //calling the view...
- if(count($aItems)==0 || !$successCat) {
+ // calling the view...
+ if( count($aItems) === 0 ) {
header('HTTP/1.1 404 Not Found');
}
$this->doView('search.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment