Removed warning that does not appear when using PHP5