CRM-18091 disambiguate TRUE as not meaning 'backtrace'
authoreileen <emcnaughton@wikimedia.org>
Tue, 23 Feb 2016 22:57:10 +0000 (11:57 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 23 Feb 2016 22:57:10 +0000 (11:57 +1300)
CRM/Core/Error.php

index 387ba23999b4f8cfc55018644c309b5865935f06..572b02a130bdbc22d5b6daba87fc4cc38cc0ba7c 100644 (file)
@@ -607,7 +607,7 @@ class CRM_Core_Error extends PEAR_ErrorStack {
    */
   public static function debug_query($string) {
     if (defined('CIVICRM_DEBUG_LOG_QUERY')) {
-      if (CIVICRM_DEBUG_LOG_QUERY == 'backtrace') {
+      if (CIVICRM_DEBUG_LOG_QUERY === 'backtrace') {
         CRM_Core_Error::backtrace($string, TRUE);
       }
       elseif (CIVICRM_DEBUG_LOG_QUERY) {