PHP warning fix