Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1248 Missing test in MyTextSanitizerExtension::mergeConfig

XOOPS_2.6.x
open
trabis
None
1
2013-01-25
2013-01-25
Alain91
No

Index: module.textsanitizer.php

--- module.textsanitizer.php (revision 596)
+++ module.textsanitizer.php (working copy)
@@ -103,7 +103,7 @@
{
if (is_array($config_custom)) {
foreach ($config_custom as $key => $val) {
- if (is_array($config_default[$key])) {
+ if (array_key_exists($key,$config_default) AND is_array($config_default[$key])) {
$config_default[$key] = self::mergeConfig($config_default[$key], $config_custom[$key]);
} else {
$config_default[$key] = $val;

Discussion

  • Michael Beck
    Michael Beck
    2013-01-25

    • assigned_to: trabis