* @param string $status
*/
public function setPresence($presence, $priority, $show, $status) {
- list($jid, $resource) = split("/", $presence);
+ list($jid, $resource) = explode("/", $presence);
if ($show != 'unavailable') {
if (!$this->isContact($jid)) {
$this->addContact($jid, 'not-in-roster');
* @param string $jid
*/
public function getPresence($jid) {
- $split = split("/", $jid);
+ $split = explode("/", $jid);
$jid = $split[0];
if($this->isContact($jid)) {
$current = array('resource' => '', 'active' => '', 'priority' => -129, 'show' => '', 'status' => ''); //Priorities can only be -128 = 127