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/branches/2.2@11365 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2011-06-14 12:06:55 +00:00
parent 67a2a56843
commit e7f8265da1

2
ws.php
View file

@ -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'),