mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
Update received & scheduled
This commit is contained in:
parent
f609fc175f
commit
23892f5983
20 changed files with 338 additions and 142 deletions
|
@ -162,6 +162,7 @@ namespace controllers\publics;
|
|||
$now = new \DateTime();
|
||||
$now = $now->format('Y-m-d H:i:s');
|
||||
|
||||
$id_user = $_SESSION['user']['id'];
|
||||
$at = $now;
|
||||
$text = $_POST['text'] ?? '';
|
||||
$numbers = $_POST['numbers'] ?? false;
|
||||
|
@ -175,7 +176,7 @@ namespace controllers\publics;
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!$this->internal_scheduled->create($at, $text, false, false, $numbers))
|
||||
if (!$this->internal_scheduled->create($id_user, $at, $text, false, false, $numbers))
|
||||
{
|
||||
$return['success'] = false;
|
||||
$return['message'] = 'Impossible de créer le Sms';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue