From fd12ae953fd8a9a7a1ad1e6ec8277ae245fe5d9f Mon Sep 17 00:00:00 2001 From: Rasmus Fuhse <fuhse@data-quest.de> Date: Mon, 14 Jan 2019 13:14:24 +0100 Subject: [PATCH] re #83 --- views/presenting/details.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/presenting/details.php b/views/presenting/details.php index 3386b2f..b3a812e 100755 --- a/views/presenting/details.php +++ b/views/presenting/details.php @@ -176,9 +176,11 @@ if ($image) { <? //Donations, wenn die Datenfelder "Flattr", "Bitcoin-Wallet" gesetzt sind $author = User::find($marketplugin['user_id']); - $flattr_username = $author['datafields']->findBy("name", "Flattr")->val("content"); - $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->val("content"); - $paypal_datafield = $author['datafields']->findBy("name", "Paypal-Account (Email)")->val("content"); + if ($author) { + $flattr_username = $author['datafields']->findBy("name", "Flattr")->val("content"); + $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->val("content"); + $paypal_datafield = $author['datafields']->findBy("name", "Paypal-Account (Email)")->val("content"); + } ?> <? if ($flattr_username || $bitcoin_wallet || $paypal_datafield) : ?> -- GitLab