From 46198a89ccc8e6750a37e1b9127f57238242fadf Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 14:11:06 +0200 Subject: Array shorthands --- classes/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Contact.php') diff --git a/classes/Contact.php b/classes/Contact.php index 7689ef7..bf816ea 100644 --- a/classes/Contact.php +++ b/classes/Contact.php @@ -65,7 +65,7 @@ class Contact extends Model { */ public function createOffer() { $stmt = $this->pdo->prepare("INSERT INTO `".Constants::db_prefix."offer` (`contactId`) VALUES (?)"); - $stmt->execute(array($this->id)); + $stmt->execute([$this->id]); if ($stmt->rowCount() == 1) { return new Offer($this->pdo, $this->pdo->lastInsertId()); } else { -- cgit v1.2.3