Fixing a strict error in php 5.4