fix last commit
authorStricted <info@stricted.de>
Mon, 20 Jul 2015 12:59:04 +0000 (14:59 +0200)
committerStricted <info@stricted.de>
Mon, 20 Jul 2015 12:59:04 +0000 (14:59 +0200)
SpeedportHybrid.class.php

index adc668ba6b2424d6b7454313f986ccfc9ce757b3..af5da78c1403a6a549075c1dc2c85a97227744b0 100644 (file)
@@ -393,7 +393,12 @@ class SpeedportHybrid {
                foreach ($array as $item) {
                        // thank you telekom for this piece of bullshit
                        if ($item['vartype'] == 'template') {
-                               $data[$item['varid']] = $this->getValues($item['varvalue']);
+                               if (is_array($item['varvalue'])) {
+                                       $data[$item['varid']][] = $this->getValues($item['varvalue']);
+                               }
+                               else {
+                                       $data[$item['varid']] = $item['varvalue'];
+                               }
                        }
                        else {
                                if (is_array($item['varvalue'])) {