projects
/
GitHub
/
Stricted
/
speedport-hybrid-php-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b7e397
)
fix last commit
author
Stricted
<info@stricted.de>
Mon, 20 Jul 2015 12:59:04 +0000
(14:59 +0200)
committer
Stricted
<info@stricted.de>
Mon, 20 Jul 2015 12:59:04 +0000
(14:59 +0200)
SpeedportHybrid.class.php
patch
|
blob
|
blame
|
history
diff --git
a/SpeedportHybrid.class.php
b/SpeedportHybrid.class.php
index adc668ba6b2424d6b7454313f986ccfc9ce757b3..af5da78c1403a6a549075c1dc2c85a97227744b0 100644
(file)
--- 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'])) {