CRM-16132 - Fix warning, "mysqli_error() expects parameter 1 to be mysqli"
The error-reporting code tests whehter it should lookup errors using mysql_error() or mysqli_error(). However, it incorrectly assumes that function-existence implies active-link. But both functions may exist -- even though only one connection is active. The active, in-use connection is determined by the DSN.
Showing with 11 additions and 6 deletions