aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-06-14 12:07:32 +0000
committerplegall <plg@piwigo.org>2011-06-14 12:07:32 +0000
commitcb25d20be5d9fb08161803df83c155bdfdb64c29 (patch)
tree13c2ddaba34eb79266d7cfbf238662935125177a
parent2a95460f3677e0d6d13d953f1c4df4faa776b79f (diff)
merge r11365 from branch 2.2 to trunk
bug 2343 fixed: pwg.images.setInfo, the "level" should not be mandatory. If the caller doesn't send this property, the level is unchanged. git-svn-id: http://piwigo.org/svn/trunk@11366 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ws.php b/ws.php
index 939489582..a23929d28 100644
--- a/ws.php
+++ b/ws.php
@@ -350,7 +350,7 @@ function ws_addDefaultMethods( $arr )
'categories' => array('default' => null),
'tag_ids' => array('default' => null),
'level' => array(
- 'default' => 0,
+ 'default' => null,
'maxValue' => $conf['available_permission_levels']
),
'single_value_mode' => array('default' => 'fill_if_empty'),