Commit be9a5ac2 authored by Manfred Kutas's avatar Manfred Kutas

ZP-955 Warnings in diff backend.

Released under the Affero GNU General Public License (AGPL) version 3.
parent e729b422
...@@ -189,7 +189,14 @@ class DiffState implements IChanges { ...@@ -189,7 +189,14 @@ class DiffState implements IChanges {
$changes[] = $change; $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"; $change["type"] = "change";
$changes[] = $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