From 51a58ec2e2014cab48140a22ec2c42b233f1ec61 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 27 Jun 2018 20:25:24 +0000 Subject: [PATCH] Fix for fetching false fer... (sorry) verbs --- src/Model/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 2dac079b6f..9fafe26aa6 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -86,7 +86,7 @@ class Item extends BaseObject // Fetch data from the item-content table whenever there is content there foreach (self::CONTENT_FIELDLIST as $field) { - if (is_null($row[$field]) && !is_null($row['item-' . $field])) { + if (empty($row[$field]) && !empty($row['item-' . $field])) { $row[$field] = $row['item-' . $field]; } unset($row['item-' . $field]); @@ -403,7 +403,7 @@ class Item extends BaseObject 'file', 'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'private', 'pubmail', 'moderated', 'visible', 'starred', 'bookmark', 'unseen', 'deleted', 'origin', 'forum_mode', 'mention', 'global', - 'id' => 'item_id', 'network']; + 'id' => 'item_id', 'network', 'icid']; $fields['item-content'] = self::CONTENT_FIELDLIST; -- 2.39.5