From e7f8265da1a7d2db0fd24766e34574ae4259ff66 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 14 Jun 2011 12:06:55 +0000 Subject: 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 --- ws.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 7b60a56c3..f3c63b940 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'), -- cgit v1.2.3