corrected php error with var