diff --git a/libs/Format/Confluence/Api.php b/libs/Format/Confluence/Api.php index 54347af..af498c4 100644 --- a/libs/Format/Confluence/Api.php +++ b/libs/Format/Confluence/Api.php @@ -200,7 +200,7 @@ class Api throw $this->handleError($e); } - $url = "content/$id/child/attachment" . count($result['results']) ? "/{$result['results'][0]['id']}/data" : ""; + $url = "content/$id/child/attachment" . (count($result['results']) ? "/{$result['results'][0]['id']}/data" : ""); try { $this->getClient()->post( @@ -213,7 +213,5 @@ class Api } catch (BadResponseException $e) { throw $this->handleError($e); } - - //FIXME :: When doing an update, Confluence does a null pointer exception } }