Ignore:
Timestamp:
Jan 28, 2010, 12:30:36 PM (14 years ago)
Author:
nikrou
Message:

Feature 511 : add support for sqlite database engine

Using session_write_close function when session handler use database because write is called after object destruction.

File:
1 edited

Legend:

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

    r4398 r4781  
    290290  pwg_debug('end initialize_calendar');
    291291}
     292
     293/*
     294 * callback to sort array with date comparaison
     295 *
     296 **/
     297function date_compare(&$a, &$b)
     298{
     299  $parts = explode('-', $a);
     300  foreach ($parts as &$p) {
     301    $p = (int)$p;
     302  }
     303  $a = implode('-', $parts);
     304  $parts = explode('-', $b);
     305  foreach ($parts as &$p) {
     306    $p = (int)$p;
     307  }
     308  $b = implode('-', $parts);
     309
     310  return strcmp($a, $b);
     311}
    292312?>
Note: See TracChangeset for help on using the changeset viewer.