X-Git-Url: https://git.cweiske.de/anoweco.git/blobdiff_plain/a9d650a45c62c311b36b229702079bca1c3bb715..e876f47024e8a73e901a6be3193c4f611ede9088:/src/anoweco/Urls.php diff --git a/src/anoweco/Urls.php b/src/anoweco/Urls.php index a82d36c..35084a5 100644 --- a/src/anoweco/Urls.php +++ b/src/anoweco/Urls.php @@ -13,9 +13,9 @@ class Urls return '/user/' . intval($id) . '.htm'; } - public static function userImg($rowUser) + public static function userImg($rowUser = null) { - if ($rowUser->user_imageurl != '') { + if ($rowUser !== null && $rowUser->user_imageurl != '') { return $rowUser->user_imageurl; } return static::full('/img/anonymous.svg');