Commit 606fc67b authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #272 in ZP/z-push from bugfix/ZP-955-warnings-in-diff-backend to develop

* commit 'be9a5ac2':
  ZP-955 Warnings in diff backend.
parents a9a97713 be9a5ac2
......@@ -189,7 +189,14 @@ class DiffState implements IChanges {
$changes[] = $change;
}
if ($old_item['mod'] != $item['mod']) {
// @see https://jira.z-hub.io/browse/ZP-955
if (isset($old_item['mod']) && isset($item['mod'])) {
if ($old_item['mod'] != $item['mod']) {
$change["type"] = "change";
$changes[] = $change;
}
}
else if (isset($old_item['mod']) || isset($item['mod'])) {
$change["type"] = "change";
$changes[] = $change;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment