diff options
Diffstat (limited to 'classes/Contact.php')
-rw-r--r-- | classes/Contact.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |