diff --git a/views/presenting/details.php b/views/presenting/details.php index 3386b2f367b62d5d8aabe5ebb54d207788948d34..b3a812ebcbb3ce81786cca7432aa20b91f7a929c 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) : ?>