Update all controllers to standard behavior

This commit is contained in:
osaajani 2019-11-15 06:30:23 +01:00
parent 18c7cb019d
commit ccfc69baca
25 changed files with 112 additions and 125 deletions

View file

@ -225,10 +225,8 @@ namespace models;
* @param string $origin : Number who sent the message
* @return array
*/
public function gets_by_origin_for_user(int $id_user, string $origin)
public function gets_by_origin_and_user(int $id_user, string $origin)
{
$nb_entry = (int) $nb_entry;
$query = '
SELECT *
FROM received