Changeset 6501 for branches/2.1/include


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

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