From e8c1c71018a1e654e57a6a887ca376eed46d7cde Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 20 Jun 2018 20:38:23 +0200 Subject: [PATCH] init $oldattributes with empty array --- op/op.EditDocument.php | 1 + 1 file changed, 1 insertion(+) diff --git a/op/op.EditDocument.php b/op/op.EditDocument.php index 1921eec0a..8717d39ff 100644 --- a/op/op.EditDocument.php +++ b/op/op.EditDocument.php @@ -113,6 +113,7 @@ $oldexpires = $document->getExpires(); * will just update the old attribute object in array attributes[] and hence * also update the old value */ +$oldattributes = array(); foreach($document->getAttributes() as $ai=>$aa) $oldattributes[$ai] = clone $aa; //$oldattributes = $document->getAttributes();