aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-12-03 22:56:24 +0000
committerplegall <plg@piwigo.org>2008-12-03 22:56:24 +0000
commit991ddc9809c5ce5ee1945d9c54353fbfd602ec41 (patch)
treedbe0c521cbd580a093ff95da8a9ef9e3d613569c
parent4fc7acc18bbb6294629e4209872fa3f449f85ce7 (diff)
merge r2918 from branch 2.0 to trunk
bug 905 fixed: avoid PHP notice when rank is implicit in the categories parameter of the pwg.images.add web API method. git-svn-id: http://piwigo.org/svn/trunk@2920 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 0f7690de8..0993008f1 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1574,7 +1574,7 @@ function ws_add_image_category_relations($image_id, $categories_string)
$tokens = explode(';', $categories_string);
foreach ($tokens as $token)
{
- list($cat_id, $rank) = explode(',', $token);
+ @list($cat_id, $rank) = explode(',', $token);
array_push($cat_ids, $cat_id);