From 4fec115627810919138d256015e18785602ca121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Thu, 23 Jul 2015 17:43:22 +0200 Subject: [PATCH] Bugfix in confluence upload. The bug in image reuploads is fixed in confluence 5.8 --- libs/Format/Confluence/Api.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 } }