summaryrefslogtreecommitdiffstats
path: root/lib/Db/Feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/Feed.php')
-rw-r--r--lib/Db/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php
index 8a23f731a..3c371087b 100644
--- a/lib/Db/Feed.php
+++ b/lib/Db/Feed.php
@@ -676,7 +676,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable
'isPinned' => $this->getPinned()
];
- if (!empty($this->getLastUpdateError())) {
+ if (!is_null($this->getLastUpdateError()) || trim($this->getLastUpdateError()) !== '') {
$result['error'] = [
'code' => 1,
'message' => $this->getLastUpdateError()