CRM-16132 - Fix warning, "mysqli_error() expects parameter 1 to be mysqli"
authorTim Otten <totten@civicrm.org>
Fri, 20 Mar 2015 03:41:38 +0000 (20:41 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 20 Mar 2015 03:41:38 +0000 (20:41 -0700)
commit2e4ade9621ea8cbd61a3c0226da628fdedf1754a
tree94fd8ae9699446df01ee9574dbe3dc00cf63ece6
parent1b4710da72a4804fbc491862692a0e6b8f354cf3
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.
CRM/Core/Error.php