From 32fa3ac5226562227f842f3514e372d8d6b8ca5c Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 31 Oct 2013 17:27:37 +0000 Subject: bug 2982: pwg.categories.add parent parameter can be 0 git-svn-id: http://piwigo.org/svn/trunk@25264 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 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), -- cgit v1.2.3