mirror of
https://github.com/friendica/friendica
synced 2025-04-23 05:10:11 +00:00
Fixes for E_NOTICE in mod/item.php (#5393)
* Fixes applied: - `if (is_array($some_array))` is better code style than `if ($some_array)` as the `if()` block really needs an array to be found - same with `if ($some_id)`, maybe `if ($some_id > 0)` is a more proper check - added missing field 'emailcc' to Item::ITEM_FIELDLIST Signed-off-by: Roland Häder <roland@mxchange.org> * Fixes E_NOTICE of missing variable (PHP's lazyness again). Signed-off-by: Roland Häder <roland@mxchange.org> * Use !empty() to avoid accessing empty array. Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
fd8897851f
commit
a41e49c84a
2 changed files with 9 additions and 6 deletions
|
@ -72,7 +72,7 @@ class Item extends BaseObject
|
|||
'title', 'content-warning', 'body', 'location', 'coord', 'app',
|
||||
'rendered-hash', 'rendered-html', 'object-type', 'object', 'target-type', 'target',
|
||||
'author-id', 'author-link', 'author-name', 'author-avatar',
|
||||
'owner-id', 'owner-link', 'owner-name', 'owner-avatar'];
|
||||
'owner-id', 'owner-link', 'owner-name', 'owner-avatar', 'emailcc'];
|
||||
|
||||
// Never reorder or remove entries from this list. Just add new ones at the end, if needed.
|
||||
// The item-activity table only stores the index and needs this array to know the matching activity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue