From eebf7735864153d47bd6ce59470e0815e74e9b51 Mon Sep 17 00:00:00 2001 From: rub Date: Sat, 29 Sep 2007 22:36:00 +0000 Subject: Change initialization of $filter in order to prevent of problem with some systems git-svn-id: http://piwigo.org/svn/trunk@2111 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/common.inc.php | 3 +-- include/filter.inc.php | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'include') diff --git a/include/common.inc.php b/include/common.inc.php index 49fc70dba..f3e4f093d 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -112,6 +112,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')) @@ -252,8 +253,6 @@ if (!empty($conf['filter_pages']) and get_filter_page_value('used')) } else { - // global variable for filter - $filter = array(); $filter['enabled'] = false; } diff --git a/include/filter.inc.php b/include/filter.inc.php index 56617d9ec..e1d1523d1 100644 --- a/include/filter.inc.php +++ b/include/filter.inc.php @@ -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 -- cgit v1.2.3