Adds a test on the toArray field in ACore's isPUblic function.

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/638/head
Cyrille Bollu 2019-07-18 10:01:02 +02:00
rodzic cb37082dc9
commit 83738c0fe7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -227,7 +227,8 @@ class ACore extends Item implements JsonSerializable {
*/
public function isPublic(): bool {
return ($this->getTo() === self::CONTEXT_PUBLIC
|| in_array(self::CONTEXT_PUBLIC, $this->getCcArray()));
|| in_array(self::CONTEXT_PUBLIC, $this->getCcArray())
|| in_array(self::CONTEXT_PUBLIC, $this->getToArray()));
}