<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
$customGroupDAO = CRM_Core_BAO_CustomGroup::getAllCustomGroupsByBaseEntity($extends);
$customGroupDAO->find();
while ($customGroupDAO->fetch()) {
- $customGroupTables[$customGroupDAO->table_name] = $this->logs[$customGroupDAO->table_name];
+ // logging is disabled for the table (e.g by hook) then $this->logs[$customGroupDAO->table_name]
+ // will be empty.
+ if (!empty($this->logs[$customGroupDAO->table_name])) {
+ $customGroupTables[$customGroupDAO->table_name] = $this->logs[$customGroupDAO->table_name];
+ }
}
return $customGroupTables;
}