diff options
author | rub <rub@piwigo.org> | 2007-09-29 22:36:00 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-09-29 22:36:00 +0000 |
commit | eebf7735864153d47bd6ce59470e0815e74e9b51 (patch) | |
tree | 447f631e880b7acddc38c1a26873dbd96acc3084 /include | |
parent | 77c7083eec42444be783803495a3350413e2a347 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 3 | ||||
-rw-r--r-- | include/filter.inc.php | 3 |
2 files changed, 1 insertions, 5 deletions
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 |