aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_webserv.inc.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-01-27 08:22:12 +0000
committervdigital <vdigital@piwigo.org>2007-01-27 08:22:12 +0000
commit291edfc0c7aad59d0e172e66a9010a3bf736daa2 (patch)
tree34f7203f017057bcc8fe6fdec5c6e60b9e160b2a /include/functions_webserv.inc.php
parentbce53b2851e9c0d8626dbb2295e44f10029837f3 (diff)
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
Diffstat (limited to 'include/functions_webserv.inc.php')
-rw-r--r--include/functions_webserv.inc.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/functions_webserv.inc.php b/include/functions_webserv.inc.php
index aad1201a0..7961c63c8 100644
--- a/include/functions_webserv.inc.php
+++ b/include/functions_webserv.inc.php
@@ -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');
}
?>