Update common.php

Fixed an incorrect var reference
Merge pull request #5 from TomGullen/patch-1

Update common.php