Change initialization of $filter in order to prevent of problem with some systems

Merge BSF 2110:2111 into branch-1_7


git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2112 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-09-29 22:38:49 +00:00
parent f1f4e4386c
commit 7948d1871d
2 changed files with 1 additions and 5 deletions

View File

@@ -113,6 +113,7 @@ $user = array();
$lang = array();
$header_msgs = array();
$header_notes = array();
$filter = array();
@include(PHPWG_ROOT_PATH .'include/mysql.inc.php');
if (!defined('PHPWG_INSTALLED'))
@@ -251,8 +252,6 @@ if (!empty($conf['filter_pages']) and get_filter_page_value('used'))
}
else
{
// global variable for filter
$filter = array();
$filter['enabled'] = false;
}

View File

@@ -23,9 +23,6 @@
// | USA. |
// +-----------------------------------------------------------------------+
// global variable for filter
$filter = array();
// $filter['enabled']: Filter is enabled
// $filter['check_key']: Check key to valitade computed filter data
// $filter['recent_period']: Recent period used to computed filter data