From 9e0fee3e5933f39006ab35cdc5b66553baf54bed Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Mon, 3 Apr 2017 11:27:32 +0200 Subject: [PATCH] PHP7 Bug gefixt --- app/Models/Result.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Result.php b/app/Models/Result.php index 27f42d96a..75ea1db6e 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -61,9 +61,9 @@ class Result $this->strippedDomain = $this->getStrippedDomain($this->strippedHost); $this->strippedLink = $this->getStrippedLink($this->anzeigeLink); $this->rank = 0; - $this->partnershop = $additionalInformation["partnershop"] ?? false; - $this->image = $additionalInformation["image"] ?? ""; - $this->price = $additionalInformation["price"] ?? 0; + $this->partnershop = isset($additionalInformation["partnershop"]) ? $additionalInformation["partnershop"] : false; + $this->image = isset($additionalInformation["image"]) ? $additionalInformation["image"] : ""; + $this->price = isset($additionalInformation["price"]) ? $additionalInformation["price"] : 0; $this->additionalInformation = $additionalInformation; } -- GitLab