Changeset 6501


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

Bug 1716 fixed : SQLite: Check upgrades failed in intro
Incorrect use of dependant database function
Fixed same problem in ws functions

merge from trunk

Location:
branches/2.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/ws_functions.inc.php

    r6438 r6501  
    11441144  WHERE id = '.$params['image_id'].'
    11451145;';
    1146   list($file_path, $original_sum) = mysql_fetch_row(pwg_query($query));
     1146  list($file_path, $original_sum) = pwg_db_fetch_row(pwg_query($query));
    11471147
    11481148  // TODO only files added with web API can be updated with web API
     
    17131713;';
    17141714  $result = pwg_query($query);
    1715   if (mysql_num_rows($result) == 0) {
     1715  if (pwg_db_num_rows($result) == 0) {
    17161716    return new PwgError(404, "image_id not found");
    17171717  }
    1718   list($path) = mysql_fetch_row($result);
     1718  list($path) = pwg_db_fetch_row($result);
    17191719
    17201720  $ret = array();
  • branches/2.1/plugins/c13y_upgrade/initialize.inc.php

    r6364 r6501  
    5151;';
    5252
    53   if (mysql_fetch_array(pwg_query($query)))
     53  if (pwg_db_fetch_array(pwg_query($query)))
    5454  {
    5555    $to_deactivate = false;
     
    8181
    8282  $result = pwg_query($query);
    83   while ($row = mysql_fetch_assoc($result))
     83  while ($row = pwg_db_fetch_assoc($result))
    8484  {
    8585    $to_deactivate = false;
Note: See TracChangeset for help on using the changeset viewer.