X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=object%2FItem.php;h=d95af3419a0f8babb385e3505538b1898fe77c2f;hb=57ce6cf5daaff5d1d4433b9a8059f5dea7b68bf5;hp=8340009a9b0b7899c2c632fac2bdbe34c1593754;hpb=93666b5a8d292725f6d33fc191de4aa27c1463e1;p=friendica.git diff --git a/object/Item.php b/object/Item.php index 8340009a9b..d95af3419a 100644 --- a/object/Item.php +++ b/object/Item.php @@ -38,9 +38,9 @@ class Item extends BaseObject { $this->set_template('wall'); $this->toplevel = ($this->get_id() == $this->get_data_value('parent')); - if(is_array($_SESSION['remote'])) { - foreach($_SESSION['remote'] as $visitor) { - if($visitor['cid'] == $this->get_data_value('contact-id')) { + if (is_array($_SESSION['remote'])) { + foreach ($_SESSION['remote'] as $visitor) { + if ($visitor['cid'] == $this->get_data_value('contact-id')) { $this->visiting = true; break; }