public function delete_job_new() { global $APP; if ($APP['ms']->kind != "no-messaging") { // SOME TYPE OF MESSAGING IS BEING USED } else { $check_new_job = new job_new(); $check_new_job->get_from_hashrange($this->id_user, $this->id); if ($check_new_job->id != "undefined") { $check_new_job->delete(); } } // END IF }