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

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.