mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
fix few last
This commit is contained in:
parent
8f9bf0a729
commit
10ae91d23d
11 changed files with 21 additions and 71 deletions
|
@ -98,27 +98,4 @@ namespace controllers\internals;
|
|||
{
|
||||
return $this->model_sms_stop->insert($smsstop);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cette fonction met à jour une série de smsstopes.
|
||||
*
|
||||
* @param mixed $smsstops
|
||||
*
|
||||
* @return int : le nombre de ligne modifiées
|
||||
*/
|
||||
public function update($smsstops)
|
||||
{
|
||||
$nb_update = 0;
|
||||
foreach ($smsstops as $smsstop)
|
||||
{
|
||||
$result = $this->model_sms_stop->update($smsstop['id'], $smsstop);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
++$nb_update;
|
||||
}
|
||||
}
|
||||
|
||||
return $nb_update;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue