28 Jun 2011, 3:03 PM
New Zenner
- Join Date:
- May 2010
- Posts:
- 32
- Plugin Contributions:
- 0
Post #1 by batman42ca
I prefer whenever possible to have no warnings and no erros in the code so I run with:
error_reporting(E_ALL);
When I do that, I see the following error:
PHP Notice: Undefined variable: show_search_header in \includes\modules\sideboxes\search_header.php on line 19
The simple solution is to change this:
if ($search_header_status->RecordCount() != 0) {
$show_search_header= true;
}
to this:
$show_search_header = false;
if ($search_header_status->RecordCount() != 0) {
$show_search_header= true;
}