Fix "total_count" type on some WS methods

This commit is contained in:
mistic100
2024-08-30 19:23:15 +02:00
committed by Pierrick Le Gall
parent 8fc3c9cd0e
commit 3f07808d7f
3 changed files with 8 additions and 4 deletions
+1
View File
@@ -137,6 +137,7 @@ SELECT SQL_CALC_FOUND_ROWS i.*
}
list($total_images) = pwg_db_fetch_row(pwg_query('SELECT FOUND_ROWS()'));
$total_images = (int)$total_images;
// let's take care of adding the related albums to each photo
if (count($image_ids) > 0)