dev/core#474 - Show missing log table warning only if logging is enabled
authorJitendra Purohit <jitendra@fuzion.co.nz>
Thu, 25 Oct 2018 11:20:02 +0000 (16:50 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 26 Oct 2018 04:36:25 +0000 (10:06 +0530)
CRM/Utils/Check/Component/Schema.php

index 1340865a5bd7b0feb00628624c42ed4b03517ca8..20617e81a2328a916098afaeefd6d800cddc68a3 100644 (file)
@@ -82,7 +82,7 @@ class CRM_Utils_Check_Component_Schema extends CRM_Utils_Check_Component {
     $logging = new CRM_Logging_Schema();
     $missingLogTables = $logging->getMissingLogTables();
 
-    if ($missingLogTables) {
+    if (Civi::settings()->get('logging') && $missingLogTables) {
       $msg = new CRM_Utils_Check_Message(
         __FUNCTION__,
         ts("You don't have logging enabled on some tables. This may cause errors on performing insert/update operation on them."),