mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
fix pagination
This commit is contained in:
parent
ac64fe9d2d
commit
2671c464a4
7 changed files with 15 additions and 31 deletions
|
@ -66,10 +66,13 @@ class Phone extends AbstractDaemon
|
|||
|
||||
//If message received, update last message time
|
||||
$this->last_message_at = microtime(true);
|
||||
|
||||
|
||||
$now = new \DateTime();
|
||||
$at = $now->format('Y-m-d H:i:s');
|
||||
|
||||
$bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'UTF8');
|
||||
$internal_scheduled = new \controllers\internals\Scheduled($bdd);
|
||||
$internal_scheduled->send($message['id_scheduled'], $message['text'], $message['origin'], $message['destination'], $message['flash']);
|
||||
$internal_sended = new \controllers\internals\Sended($bdd);
|
||||
$internal_sended->create($at, $message['text'], $message['origin'], $message['destination'], $message['flash']);
|
||||
|
||||
//Close bdd
|
||||
$bdd = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue