Oh, standards ...

This commit is contained in:
Michael 2018-01-16 22:46:20 +00:00
parent c4d3ab6878
commit f30275f6db

View file

@ -72,7 +72,8 @@ class Item
*
* @param integer $itemid Item ID that should be added
*/
public static function addShadow($itemid) {
public static function addShadow($itemid)
{
$fields = ['uid', 'wall', 'private', 'moderated', 'visible', 'contact-id', 'deleted', 'network', 'author-id', 'owner-id'];
$condition = ["`id` = ? AND (`parent` = ? OR `parent` = 0)", $itemid, $itemid];
$item = dba::selectFirst('item', $fields, $condition);
@ -154,7 +155,8 @@ class Item
*
* @param integer $itemid Item ID that should be added
*/
public static function addShadowPost($itemid) {
public static function addShadowPost($itemid)
{
$item = dba::selectFirst('item', [], ['id' => $itemid]);
if (!DBM::is_result($item)) {
return;