fixing notice PHP 5.4