mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 06:46:25 +02:00
revert unwanted change to publics/User, fix errors phone & Settings
This commit is contained in:
parent
6d9b1289fd
commit
18c7cb019d
7 changed files with 47 additions and 11 deletions
|
@ -30,4 +30,15 @@ namespace models;
|
|||
{
|
||||
return $this->_select_one('phone', ['number' => $number, 'id_user' => $id_user]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return a phone by his number
|
||||
* @param string $number : phone number
|
||||
* @return array
|
||||
*/
|
||||
public function get_by_number (string $number)
|
||||
{
|
||||
return $this->_select_one('phone', ['number' => $number]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue