Merge pull request #5479 from eileenmcnaughton/4.6
[civicrm-core.git] / CRM / Logging / Differ.php
index 58c3697cee06ee547f2c07bc5d482517b6c39d71..9a444e3891f90a1ae8e3906fd7c020ad5b1ec9c6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -81,7 +81,7 @@ class CRM_Logging_Differ {
       2 => array($this->log_date, 'String'),
     );
 
-    $logging = new CRM_Logging_Schema;
+    $logging = new CRM_Logging_Schema();
     $addressCustomTables = $logging->entityCustomDataLogTables('Address');
 
     $contactIdClause = $join = '';
@@ -311,7 +311,7 @@ WHERE lt.log_conn_id = %1 AND
             break;
         }
 
-        $dao = new $daos[$table];
+        $dao = new $daos[$table]();
         foreach ($dao->fields() as $field) {
           $titles[$table][$field['name']] = CRM_Utils_Array::value('title', $field);
 
@@ -402,4 +402,5 @@ ORDER BY log_date
 
     return array($titles, $values);
   }
+
 }