From d43d6353f0844390f584c2b9b419ea8896e7cfd2 Mon Sep 17 00:00:00 2001 From: Cabillot Julien Date: Tue, 3 Jan 2017 14:19:03 +0100 Subject: [PATCH] hum --- lib/Stream.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Stream.php b/lib/Stream.php index d6b0845..1c0fe1a 100644 --- a/lib/Stream.php +++ b/lib/Stream.php @@ -24,7 +24,7 @@ class Stream { $db = DbMongo::get(); $coll = $db->stream; - $coll->insert([ + $values = [ '_id' => $this->_id, 'timestamp' => $this->timestamp, 'ip' => $this->ip, @@ -32,7 +32,8 @@ class Stream { 'cstate' => $this->cstate, 'filename' => $this->filename, 'hide' => $this->hide - ]); + ]; + $coll->insert($values); } /**