aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Remote/ApiCore.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Remote/ApiCore.php')
-rw-r--r--inc/Remote/ApiCore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Remote/ApiCore.php b/inc/Remote/ApiCore.php
index 9a041452d..12a32b8a4 100644
--- a/inc/Remote/ApiCore.php
+++ b/inc/Remote/ApiCore.php
@@ -489,7 +489,7 @@ class ApiCore
$data = array(
'name' => $id,
'lastModified' => $this->api->toDate($rev),
- 'author' => (($info['user']) ? $info['user'] : $info['ip']),
+ 'author' => is_array($info) ? (($info['user']) ? $info['user'] : $info['ip']) : null,
'version' => $rev
);