Catchable fatal error: Object of class stdClass could not be converted to string

I got this error quite often(not all the time), any advies?

Catchable fatal error: Object of class stdClass could not be converted to string in /wp-content/plugins/appointments/appointments.php on line 518