aboutsummaryrefslogtreecommitdiff
path: root/classes/Contact.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 14:11:06 +0200
committerCamil Staps2016-08-01 14:11:06 +0200
commit46198a89ccc8e6750a37e1b9127f57238242fadf (patch)
treede6c0bc2f55b759a0db6471fc0b820ee5433e648 /classes/Contact.php
parentUse Model::search in child::get* methods (diff)
Array shorthands
Diffstat (limited to 'classes/Contact.php')
-rw-r--r--classes/Contact.php2
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 {