X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReverter.php;h=9d65c0c93875f2a9876c1091edb83614f5688a20;hb=51efd9c43f2157c34443d3f1bbd0a13d32e90c0d;hp=7a1085f2462106d8d69149746bf80dda809582ad;hpb=d48669c33083785178028c56352f2c1e839829a4;p=civicrm-core.git diff --git a/CRM/Logging/Reverter.php b/CRM/Logging/Reverter.php index 7a1085f246..9d65c0c938 100644 --- a/CRM/Logging/Reverter.php +++ b/CRM/Logging/Reverter.php @@ -1,34 +1,18 @@ db = $dsn['database']; $this->log_conn_id = $log_conn_id; $this->log_date = $log_date; @@ -128,7 +113,7 @@ class CRM_Logging_Reverter { // DAO-based tables case (($tableDAO = CRM_Core_DAO_AllCoreTables::getClassForTable($table)) != FALSE): - $dao = new $tableDAO (); + $dao = new $tableDAO(); foreach ($row as $id => $changes) { $dao->id = $id; foreach ($changes as $field => $value) { @@ -155,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 = [];