REF - Cleanup array key checking to use array_key_exists
[civicrm-core.git] / CRM / Logging / Reverter.php
index eb1c9dedc16c1f9964e89f519075838fc0821ec1..9d65c0c93875f2a9876c1091edb83614f5688a20 100644 (file)
@@ -140,7 +140,7 @@ class CRM_Logging_Reverter {
 
         // custom data tables
 
-        case in_array($table, array_keys($ctypes)):
+        case array_key_exists($table, $ctypes):
           foreach ($row as $id => $changes) {
             $inserts = ['id' => '%1'];
             $updates = [];