diff options
Diffstat (limited to '')
-rw-r--r-- | include/ws_functions.inc.php | 6 | ||||
-rw-r--r-- | plugins/c13y_upgrade/initialize.inc.php | 4 |
2 files changed, 5 insertions, 5 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(); diff --git a/plugins/c13y_upgrade/initialize.inc.php b/plugins/c13y_upgrade/initialize.inc.php index 6572aedf4..a3b380dc7 100644 --- a/plugins/c13y_upgrade/initialize.inc.php +++ b/plugins/c13y_upgrade/initialize.inc.php @@ -50,7 +50,7 @@ having count(*) > 1 limit 0,1 ;'; - if (mysql_fetch_array(pwg_query($query))) + if (pwg_db_fetch_array(pwg_query($query))) { $to_deactivate = false; $c13y->add_anomaly( @@ -80,7 +80,7 @@ where ;'; $result = pwg_query($query); - while ($row = mysql_fetch_assoc($result)) + while ($row = pwg_db_fetch_assoc($result)) { $to_deactivate = false; |