minor bug fix

Corrected a minor glitch where deprecated PHP functions were loading up
the error logs with warnings.