ignore CR when comparing textfields for history

This commit is contained in:
Ralf Becker 2015-05-26 10:50:04 +00:00
parent 92c6d3da49
commit ee900fbafc

View File

@ -469,6 +469,10 @@ abstract class bo_tracking
if ($data[$name] == $old[$name]) continue;
}
}
elseif (str_replace("\r", '', $old[$name]) == str_replace("\r", '', $data[$name]))
{
continue; // change only in CR (eg. different OS) --> ignore
}
$changed_fields[] = $name;
//echo "<p>$name: ".array2string($data[$name]).' != '.array2string($old[$name])."</p>\n";
}