Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

New Message Alert to Some Staff

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!!
Sign In or Register to comment.