]> git.mxchange.org Git - friendica.git/commit
Fixes for E_NOTICE in mod/item.php (#5393)
authorRoland Häder <Quix0r@users.noreply.github.com>
Tue, 17 Jul 2018 22:18:42 +0000 (00:18 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Tue, 17 Jul 2018 22:18:42 +0000 (18:18 -0400)
commita41e49c84a3b799f4c511719516a7fbb9db9694f
tree84a220191c27c95d2e480eaa5f341446cd70e22a
parentfd8897851f9beab93d8ec3d0472937225c8f5118
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>
mod/item.php
src/Model/Item.php