Fixing PHP strict standards notice

Only variables should be passed by reference. The `get_posts()` results need to be assigned to a var first before passing through `array_shift`.