aboutsummaryrefslogtreecommitdiff
path: root/classes/Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Client.php')
-rw-r--r--classes/Client.php4
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 {