Error correction

Fixed compatibility with newest PHP