Oh, standards ...
This commit is contained in:
parent
c4d3ab6878
commit
f30275f6db
1 changed files with 4 additions and 2 deletions
|
@ -72,7 +72,8 @@ class Item
|
||||||
*
|
*
|
||||||
* @param integer $itemid Item ID that should be added
|
* @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'];
|
$fields = ['uid', 'wall', 'private', 'moderated', 'visible', 'contact-id', 'deleted', 'network', 'author-id', 'owner-id'];
|
||||||
$condition = ["`id` = ? AND (`parent` = ? OR `parent` = 0)", $itemid, $itemid];
|
$condition = ["`id` = ? AND (`parent` = ? OR `parent` = 0)", $itemid, $itemid];
|
||||||
$item = dba::selectFirst('item', $fields, $condition);
|
$item = dba::selectFirst('item', $fields, $condition);
|
||||||
|
@ -154,7 +155,8 @@ class Item
|
||||||
*
|
*
|
||||||
* @param integer $itemid Item ID that should be added
|
* @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]);
|
$item = dba::selectFirst('item', [], ['id' => $itemid]);
|
||||||
if (!DBM::is_result($item)) {
|
if (!DBM::is_result($item)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue