Update common.php

Check if the language var is set
Merge pull request #134 from Cedroux/patch-1

Update common.php