mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Web Service ws_add_controls is closed to final
(Next steps: - Merge functions_webserv.inc.php into ws_functions.inc.php - Revise ws_checker - Restrict Method need to be generic - ...) git-svn-id: http://piwigo.org/svn/trunk@1757 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -129,7 +129,7 @@ function check_target($list)
|
||||
|
||||
|
||||
// FIXME Function which could already exist somewhere else
|
||||
function convert_catlist($cat_ids)
|
||||
function get_image_ids_for_cats($cat_ids)
|
||||
{
|
||||
$cat_list = implode(',', $cat_ids);
|
||||
$ret_ids = array();
|
||||
@@ -138,11 +138,6 @@ function convert_catlist($cat_ids)
|
||||
FROM '.IMAGE_CATEGORY_TABLE.'
|
||||
WHERE category_id in ('.$cat_list.')
|
||||
;';
|
||||
$result = pwg_query($query);
|
||||
while ($row = mysql_fetch_array($result))
|
||||
{
|
||||
$ret_ids[] = $row['image_id'];
|
||||
}
|
||||
return $ret_ids;
|
||||
return $array_from_query($query, 'image_id');
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user