Skip to content

Commit 7f41888

Browse files
committed
Fix arguments in insertAll
1 parent f7e1dec commit 7f41888

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Databox/Client.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ public function insertAll($kpis)
5151
{
5252
$response = $this->rawPush('/', [
5353
'json' => ['data' => array_map(function ($i) {
54-
if (count($i) < 3) {
55-
$i[] = null;
56-
}
54+
$i = $i + [null, null, null, null];
5755

58-
return $this->processKPI($i[0], $i[1], $i[2]);
56+
return $this->processKPI($i[0], $i[1], $i[2], $i[3]);
5957
}, $kpis)]
6058
]);
6159

0 commit comments

Comments
 (0)