fix pagination

This commit is contained in:
osaajani 2020-01-06 13:51:02 +01:00
parent ac64fe9d2d
commit 2671c464a4
7 changed files with 15 additions and 31 deletions

View file

@ -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;