Fixed a Notice in PHP 5.3+