Skip to content

Commit

Permalink
update metho deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
amma35 committed Oct 18, 2017
1 parent e45d880 commit 6841f53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/notificationtargetaccount.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getSpecificTargets($data, $options) {

//Get receipient
public function getUserAddress() {
return $this->getUserByField("users_id");
return $this->addUserByField("users_id");
}

public function getGroupAddress() {
Expand All @@ -106,14 +106,14 @@ public function getGroupAddress() {
WHERE `glpi_groups_users`.`groups_id` = '" . $this->obj->fields[$group_field] . "'";

foreach ($DB->request($query) as $data) {
$this->addToAddressesList($data);
$this->addToRecipientsList($data);
}
}
}

//Get receipient
function getUserTechAddress() {
return $this->getUserByField("users_id_tech");
return $this->addUserByField("users_id_tech");
}

public function getGroupTechAddress() {
Expand All @@ -131,7 +131,7 @@ public function getGroupTechAddress() {
WHERE `glpi_groups_users`.`groups_id` = '" . $this->obj->fields[$group_field] . "'";

foreach ($DB->request($query) as $data) {
$this->addToAddressesList($data);
$this->addToRecipientsList($data);
}
}
}
Expand Down

0 comments on commit 6841f53

Please sign in to comment.