diff options
author | Paul Tirk <paultirk@paultirk.com> | 2021-03-29 10:17:32 +0200 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 10:23:11 +0200 |
commit | f18adeba268bcfb7dc4d0cf9a7b4419e6616cd36 (patch) | |
tree | 30f9ed09dbf84309cf78dccfe205034ee28aa8c7 /lib/Db | |
parent | f358c8213b5110144de207c2571a716dba3f0031 (diff) |
fix invalid 'empty' checks
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/Feed.php | 2 |
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() |