From: Cash Costello Date: Sun, 8 Jan 2012 15:05:45 +0000 (-0500) Subject: Refs #4271 integrates fix to 1.8 branch for ODDDocument X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3b496d923045770bdf4b25452fa63253927ee56a;p=lorea%2Felgg.git Refs #4271 integrates fix to 1.8 branch for ODDDocument --- diff --git a/engine/classes/ODDDocument.php b/engine/classes/ODDDocument.php index 4d185aba5..540c35a3b 100644 --- a/engine/classes/ODDDocument.php +++ b/engine/classes/ODDDocument.php @@ -70,8 +70,8 @@ class ODDDocument implements Iterator { public function addElement(ODD $element) { if (!is_array($this->elements)) { $this->elements = array(); - $this->elements[] = $element; } + $this->elements[] = $element; } /**