pre-fill auth form with $me data
[anoweco.git] / src / anoweco / Urls.php
index a82d36c45b9c117f94dd8228e4b4868be49fc62f..35084a59790328ed278ebb44872c7cb378216346 100644 (file)
@@ -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');