From a9774635bdfb6e743c11205ec472d5483791614b Mon Sep 17 00:00:00 2001 From: nikrou Date: Wed, 9 Jun 2010 09:57:57 +0000 Subject: Bug 1716 fixed : SQLite: Check upgrades failed in intro Incorrect use of dependant database function Fixed same problem in ws functions merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6501 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ws_functions.inc.php') 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(); -- cgit v1.2.3