From bc5f01e2c8b6ed19bcb9ad0791d29428cd4e0152 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sat, 18 Aug 2018 12:34:02 -0500 Subject: [PATCH] Remove accidental cast (#9032) DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply `, i.e `./scripts/github-apply 5926` --- includes/dbFacile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dbFacile.php b/includes/dbFacile.php index e25be4d7d1..e7917f6e58 100644 --- a/includes/dbFacile.php +++ b/includes/dbFacile.php @@ -99,7 +99,7 @@ function dbInsert($data, $table) try { $result = Eloquent::DB()->insert($sql, (array)$data); } catch (PDOException $pdoe) { - dbHandleException(new QueryException($sql, (array)$data, $pdoe)); + dbHandleException(new QueryException($sql, $data, $pdoe)); } recordDbStatistic('insert', $time_start);