Ignore:
Timestamp:
Sep 8, 2011, 8:22:27 PM (13 years ago)
Author:
rvelices
Message:
  • reoptimize queries for MySql
  • week starts on monday/sunday applies also to weekly calendar
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_calendar.inc.php

    r8728 r12118  
    290290  pwg_debug('end initialize_calendar');
    291291}
    292 
    293 function array_to_int($array)
    294 {
    295   $result = array();
    296   foreach ($array as $k => $v)
    297   {
    298     if ((int)$k==$k)
    299     {
    300       $key = (int) $k;
    301     }
    302     else
    303     {
    304       $key = $k;
    305     }
    306     if (is_array($v))
    307     {
    308       $result[$key] = array_to_int($v);
    309     }
    310     else
    311     {
    312       if (is_int($v))
    313       {
    314         $value = (int) $v;
    315       }
    316       else
    317       {
    318         $value = $v;
    319       }
    320       $result[$key] = $value;
    321     }
    322   }
    323   return $result;
    324 }
    325292?>
Note: See TracChangeset for help on using the changeset viewer.