From: Evan Prodromou Date: Mon, 14 Dec 2009 22:48:14 +0000 (-0500) Subject: make sure id of
  • in notice list is unique X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=607e98ee11f01a72a6ea7d755ce0f2dee68ff74a;p=quix0rs-gnu-social.git make sure id of
  • in notice list is unique --- diff --git a/lib/noticelist.php b/lib/noticelist.php index 3ccb502306..dd0a361c0c 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -243,8 +243,9 @@ class NoticeListItem extends Widget { // XXX: RDFa // TODO: add notice_type class e.g., notice_video, notice_image + $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id; $this->out->elementStart('li', array('class' => 'hentry notice', - 'id' => 'notice-' . $this->notice->id)); + 'id' => 'notice-' . $id)); } /**