I can fix the issue by setting Security->Site Policies->Force users to log in to view user pictures to "NO". I would rather not do that though. Any ideas?
General developer forum
Get moodle user profile image in PHP
Ova je rasprava zaključana, pa više nije moguće odgovoriti na nju.