diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-09-08 18:22:27 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-09-08 18:22:27 +0000 |
commit | 1d3fc9005f00927c19c291f33b5bfffdd81cad6e (patch) | |
tree | 549aa6fa5a11b0ab895e74e7fb97e468bcff4074 /include/calendar_base.class.php | |
parent | dbb3fd5a444a542ddcd730882138daca602c0923 (diff) |
- reoptimize queries for MySql
- week starts on monday/sunday applies also to weekly calendar
git-svn-id: http://piwigo.org/svn/trunk@12118 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/calendar_base.class.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/calendar_base.class.php b/include/calendar_base.class.php index 5f85c914f..a64e20fe9 100644 --- a/include/calendar_base.class.php +++ b/include/calendar_base.class.php @@ -220,7 +220,6 @@ $this->get_date_where($level).' ;'; $level_items = simple_hash_from_query($query, 'period', 'nb_images'); - $level_items = array_to_int($level_items); if ( count($level_items)==1 and count($page['chronology_date'])<count($this->calendar_levels)-1) @@ -292,7 +291,6 @@ GROUP BY period'; $current = implode('-', $page['chronology_date'] ); $upper_items = array_from_query( $query, 'period'); - $upper_items = array_to_int($upper_items); usort($upper_items, 'version_compare'); $upper_items_rank = array_flip($upper_items); @@ -347,4 +345,4 @@ GROUP BY period'; } } } -?> +?>
\ No newline at end of file |