Fix array declaration

This commit is contained in:
Nicolas Le Goff
2014-03-16 06:50:18 +01:00
parent 1a528b5f5f
commit b99db80fef
2 changed files with 14 additions and 11 deletions

View File

@@ -61,10 +61,10 @@ class API_Webhook
VALUES (null, :type, :data, NOW())';
$stmt = $appbox->get_connection()->prepare($sql);
$stmt->execute([
$stmt->execute(array(
'type' => $type,
'data' => json_encode($data),
]);
));
$stmt->closeCursor();
return new API_Webhook($appbox, $appbox->get_connection()->lastInsertId());