Fix warning when order is not set
Fix PHP-Warning: Invalid argument supplied for foreach()
Merge pull request #115 from richardhinkamp/master

Fix notices