init $oldattributes

This commit is contained in:
Uwe Steinmann 2021-12-04 17:51:18 +01:00
parent ccd5bb7d41
commit f263ec1ac2

View File

@ -63,6 +63,7 @@ if (!is_object($version)) {
* will just update the old attribute object in array attributes[] and hence
* also update the old value
*/
$oldattributes = array();
foreach($version->getAttributes() as $ai=>$aa)
$oldattributes[$ai] = clone $aa;