osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
New Message Alert to Some Staff
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:
//Assigned staff if any...could be the last respondent
if($this->isAssigned() AND $staff->isVisible(1))
The part I'm guessing on is: AND $staff->isVisible(1)