htdocs/xoops_lib/Xoops/Core/Text/Sanitizer/ConfigurationAbstract.php 1 location
|
@@ 92-97 (lines=6) @@
|
| 89 |
|
public function setArrayItem($stem, $name, $value) |
| 90 |
|
{ |
| 91 |
|
$newValue = array(); |
| 92 |
|
if ($this->offsetExists($stem)) { |
| 93 |
|
$newValue = $this->offsetGet($stem); |
| 94 |
|
if (!is_array($newValue)) { |
| 95 |
|
$newValue = array(); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
if (empty($name)) { |
| 99 |
|
$newValue[] = $value; |
| 100 |
|
} else { |
htdocs/xoops_lib/Xoops/Html/Attributes.php 1 location
|
@@ 282-287 (lines=6) @@
|
| 279 |
|
public function setArrayItem($stem, $name, $value) |
| 280 |
|
{ |
| 281 |
|
$newValue = array(); |
| 282 |
|
if ($this->offsetExists($stem)) { |
| 283 |
|
$newValue = $this->offsetGet($stem); |
| 284 |
|
if (!is_array($newValue)) { |
| 285 |
|
$newValue = array(); |
| 286 |
|
} |
| 287 |
|
} |
| 288 |
|
if ($name === null || $name === '') { |
| 289 |
|
$newValue[] = $value; |
| 290 |
|
} else { |