diff --git a/src/api/wishlists.php b/src/api/wishlists.php index 070dcf2e..bc4b06d2 100644 --- a/src/api/wishlists.php +++ b/src/api/wishlists.php @@ -107,7 +107,8 @@ switch ($_SERVER['REQUEST_METHOD']) { */ $wishlist = new Wishlist($_GET['wishlist_id']); $options = array( - 'style' => $_GET['style'], + 'style' => $_GET['style'], + 'placeholders' => array(), ); $where = array( 'wishlist' => '`wishlist` = ' . $wishlist->id, diff --git a/src/classes/database.php b/src/classes/database.php index 9b5dd665..f50062df 100644 --- a/src/classes/database.php +++ b/src/classes/database.php @@ -29,7 +29,7 @@ class Database public string $password, ) { $dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->database . ';port=3306;charset=utf8'; - $options = array(); + $options = array('placeholders' => array()); $this->pdo = new \PDO($dsn, $this->user, $this->password, $options); } diff --git a/src/classes/wishlist.php b/src/classes/wishlist.php index 2fe61edf..5cd2c33a 100644 --- a/src/classes/wishlist.php +++ b/src/classes/wishlist.php @@ -57,7 +57,7 @@ class Wishlist // $this->wishes = $this->getWishes(); } - public function getWishes($options = array()): array + public function getWishes(array $options = array('placeholders' => array())): array { global $database; @@ -115,7 +115,7 @@ class Wishlist return $this->wishes; } - public function getCards(array $options = array()): string + public function getCards(array $options = array('placeholders' => array())): string { ob_start();