Hello!

I just need some PHP assistance.

I'm trying to add on to the statement that enables new message alerts to be sent out to the assigned staff ONLY if they're visible on the directory. I'm trying to include a statement that would say if the staff is visible (i.e. isVisible is set to 1) then a message can be sent.

Can someone assist? here's what I came up with but I need PHP help:

From class.ticket

//Assigned staff if any...could be the last respondent

if($this->isAssigned() AND $staff->isVisible(1))

$recipients=$this->getStaff();

The part I'm guessing on is: AND $staff->isVisible(1)

Thank you!!

Write a Reply...