init $oldattributes with empty array

This commit is contained in:
Uwe Steinmann 2018-06-20 20:38:23 +02:00
parent 8a4450295a
commit e8c1c71018

View File

@ -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();