]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4271 integrates fix to 1.8 branch for ODDDocument
authorCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 15:05:45 +0000 (10:05 -0500)
committerCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 15:05:45 +0000 (10:05 -0500)
engine/classes/ODDDocument.php

index 4d185aba559ce1031a37e877e893ebd2071dac08..540c35a3b197bb4fac08d77b9e89d4d52f674838 100644 (file)
@@ -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;
        }
 
        /**