Fix compatibility with PHP53
Merge pull request #454 from magabriel/fix-niceurls-php53

Fix compatibility with PHP53