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/functions_calendar.inc.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/functions_calendar.inc.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/functions_calendar.inc.php b/include/functions_calendar.inc.php index cbd3eec25..904514cd1 100644 --- a/include/functions_calendar.inc.php +++ b/include/functions_calendar.inc.php @@ -289,37 +289,4 @@ WHERE id IN (' . implode(',',$page['items']) .')'; } pwg_debug('end initialize_calendar'); } - -function array_to_int($array) -{ - $result = array(); - foreach ($array as $k => $v) - { - if ((int)$k==$k) - { - $key = (int) $k; - } - else - { - $key = $k; - } - if (is_array($v)) - { - $result[$key] = array_to_int($v); - } - else - { - if (is_int($v)) - { - $value = (int) $v; - } - else - { - $value = $v; - } - $result[$key] = $value; - } - } - return $result; -} ?>
\ No newline at end of file |