unset($revision->sv_autoid); unset($revision->sv_author); unset($revision->sv_action); unset($revision->sv_revision); unset($revision->sv_changelog); unset($revision->sv_current); unset($revision->sv_deleted); $cinfo = array('c_autoid' => $current->sv_autoid, 'c_author' => $current->sv_author, 'c_action' => $current->sv_action, 'c_revision' => Date::timestamp($current->sv_revision, 'F j, Y - g:ia'), 'c_changelog' => $current->sv_changelog, 'c_current' => $current->sv_current, 'c_deleted' => $current->sv_deleted); unset($current->sv_autoid); unset($current->sv_author); unset($current->sv_action); unset($current->sv_revision); unset($current->sv_changelog); unset($current->sv_current); unset($current->sv_deleted); $diff = $rex->compare($parameters['_key'], $parameters['_rid'], $parameters['_current']); unset($diff['sv_autoid']); unset($diff['sv_author']); unset($diff['sv_action']); unset($diff['sv_revision']); unset($diff['sv_changelog']); unset($diff['sv_current']); unset($diff['sv_deleted']); $altered = array(); foreach ($diff as $key => $value) { if (count($value) == 1) { $diff[$key] = '<pre> ' . $value[0][1] . '</pre>'; } else { // compile comparison $new = '<pre>'; $ec = 0;