Changeset 6500


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

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

Location:
trunk
Files:
2 edited

Legend:

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

    r6437 r6500  
    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();
  • trunk/plugins/c13y_upgrade/initialize.inc.php

    r5660 r6500  
    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.