<?php if ($author->avatar) { $result['avatar_path'] = "/uploads/avatars/" . $author->avatar; } else { $result['avatar_path'] = "/uploads/avatars/default/" . $author->role . ".png"; }
Standard input is empty
Standard output is empty
PHP Notice: Undefined variable: author in /home/ptFqvo/prog.php on line 3 PHP Notice: Trying to get property of non-object in /home/ptFqvo/prog.php on line 3 PHP Notice: Undefined variable: author in /home/ptFqvo/prog.php on line 6 PHP Notice: Trying to get property of non-object in /home/ptFqvo/prog.php on line 6