aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-10-31 17:27:37 +0000
committermistic100 <mistic@piwigo.org>2013-10-31 17:27:37 +0000
commit32fa3ac5226562227f842f3514e372d8d6b8ca5c (patch)
tree97d9d01ff52ed34f877ce599ef28c32b81ab70d6 /ws.php
parent73d9f75f3e17ce3a325e63031e90f1ca909dffd0 (diff)
bug 2982: pwg.categories.add parent parameter can be 0
git-svn-id: http://piwigo.org/svn/trunk@25264 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ws.php b/ws.php
index d7fef2634..b25282361 100644
--- a/ws.php
+++ b/ws.php
@@ -479,7 +479,7 @@ function ws_addDefaultMethods( $arr )
array(
'name' => array(),
'parent' => array('default'=>null,
- 'type'=>WS_TYPE_ID),
+ 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
'comment' => array('default'=>null),
'visible' => array('default'=>true,
'type'=>WS_TYPE_BOOL),