diff options
author | Camil Staps | 2016-08-01 14:11:06 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 14:11:06 +0200 |
commit | 46198a89ccc8e6750a37e1b9127f57238242fadf (patch) | |
tree | de6c0bc2f55b759a0db6471fc0b820ee5433e648 /classes/Client.php | |
parent | Use Model::search in child::get* methods (diff) |
Array shorthands
Diffstat (limited to 'classes/Client.php')
-rw-r--r-- | classes/Client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Client.php b/classes/Client.php index 0f0a2f8..1f04f21 100644 --- a/classes/Client.php +++ b/classes/Client.php @@ -79,7 +79,7 @@ class Client extends Model { */ public function createContact($name, $email, $address, $address_2, $postal_code, $city, $country) { $stmt = $this->pdo->prepare("INSERT INTO `".Constants::db_prefix."contact` (`clientId`,`name`,`email`,`address`,`address_2`,`postal_code`,`city`,`country`) VALUES (?,?,?,?,?,?,?,?)"); - $stmt->execute(array( + $stmt->execute([ $this->id, $name, $email, @@ -88,7 +88,7 @@ class Client extends Model { $postal_code, $city, $country - )); + ]); if ($stmt->rowCount() == 1) { return new Contact($this->pdo, $this->pdo->lastInsertId()); } else { |