i started to do some changes on the wallpaper script and i got this error

Fatal error: Cannot use object of type stdClass as array in /home/wallpaper/web/wallpapers.php on line 535

what can i do to resolve this problem?