Fixing backwards compatibility with PHP <5.4
Merge pull request #275 from CosmoCMS/james

Fixing backwards compatibility with PHP <5.4