Facebook
From Innocent Bushbaby, 7 Years ago, written in Plain Text.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

- view diff
Embed
Download Paste or View Raw
Hits: 378
  1.         public void filter(String content)
  2.     {
  3.         list2 = new ArrayList<>();
  4.         Notification pom= null;
  5.         for (Notification notification : list1)
  6.         {
  7.             if(content.equals(notification.getContent()))
  8.             {
  9.                 pom = notification;
  10.                 list2.add(pom);
  11.             }
  12.         }