Ignore:
Timestamp:
Jun 9, 2010, 11:38:43 AM (14 years ago)
Author:
nikrou
Message:

Bug 1715 fixed : SQLite: Add photos fail
must use pwg_db_* functions instead of mysql_* ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r6385 r6498  
    2727
    2828  // current date
    29   list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
     29  list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    3030  list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4);
    3131 
     
    121121    );
    122122 
    123   $image_id = mysql_insert_id();
     123  $image_id = pwg_db_insert_id();
    124124
    125125  if (isset($categories) and count($categories) > 0)
Note: See TracChangeset for help on using the changeset viewer.