From cc790dd61428c420bf4106d5536f13c9d5a08d5d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 15 Feb 2019 10:39:45 +0100 Subject: [PATCH] fix php warning --- restapi/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi/index.php b/restapi/index.php index 56b5a1714..974eb5318 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -767,7 +767,7 @@ function addDocumentLink($request, $response, $args) { /* {{{ */ $params = $request->getParsedBody(); $public = !isset($params['public']) ? true : false; if ($sourcedoc->addDocumentLink($targetdoc->getId(), $userobj->getID(), $public)){ - return $response->withJson(array('success'=>true, 'message'=>'', 'data'=>$rec), 201); + return $response->withJson(array('success'=>true, 'message'=>'', 'data'=>''), 201); } else { return $response->withJson(array('success'=>false, 'message'=>'Could not create document link', 'data'=>''), 500); }