Fixed PHP error with encryption