aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-06-09 09:55:54 +0000
committernikrou <nikrou@piwigo.org>2010-06-09 09:55:54 +0000
commita629994ea9178bfcf89795d474b07bd63bd49641 (patch)
treeb9ead8c6d23447475baeec1358835cec9b84ba14 /include/ws_functions.inc.php
parentad676ee2c8b868fb5edb0f1894ade039dbdfb98a (diff)
Bug 1716 fixed : Check upgrades failed in intro
Incorrect use of database dependant functions. Fixed same problem for ws functions git-svn-id: http://piwigo.org/svn/trunk@6500 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_functions.inc.php')
-rw-r--r--include/ws_functions.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index eee2c3f14..34b1403ec 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1143,7 +1143,7 @@ SELECT
FROM '.IMAGES_TABLE.'
WHERE id = '.$params['image_id'].'
;';
- list($file_path, $original_sum) = mysql_fetch_row(pwg_query($query));
+ list($file_path, $original_sum) = pwg_db_fetch_row(pwg_query($query));
// TODO only files added with web API can be updated with web API
@@ -1712,10 +1712,10 @@ SELECT
WHERE id = '.$params['image_id'].'
;';
$result = pwg_query($query);
- if (mysql_num_rows($result) == 0) {
+ if (pwg_db_num_rows($result) == 0) {
return new PwgError(404, "image_id not found");
}
- list($path) = mysql_fetch_row($result);
+ list($path) = pwg_db_fetch_row($result);
$ret = array();