mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Rename a few classes, fix bugs, fix syntax
This commit is contained in:
parent
7cb963b8cf
commit
bda1c7ddfd
18 changed files with 106 additions and 37 deletions
|
@ -58,18 +58,17 @@ namespace models;
|
|||
|
||||
return isset($contacts[0]) ? $contacts[0] : false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get contacts of a particular group
|
||||
* Get contacts of a particular group.
|
||||
*
|
||||
* @param int $id_group : Id of the group we want contacts for
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_by_group($id_group)
|
||||
{
|
||||
$contacts = $this->_select('contact', ['id_group' => $id_group]);
|
||||
return $contacts;
|
||||
return $this->_select('contact', ['id_group' => $id_group]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue