From ec351a7de40d6568768823b8a66a05955ed3f44a Mon Sep 17 00:00:00 2001 From: Stricted Date: Mon, 20 Jul 2015 14:59:04 +0200 Subject: [PATCH] fix last commit --- SpeedportHybrid.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SpeedportHybrid.class.php b/SpeedportHybrid.class.php index adc668b..af5da78 100644 --- a/SpeedportHybrid.class.php +++ b/SpeedportHybrid.class.php @@ -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'])) { -- 2.20.1