diff --git a/application/portalwebpage.class.inc.php b/application/portalwebpage.class.inc.php index c9848dba68..b6b00cb3dc 100644 --- a/application/portalwebpage.class.inc.php +++ b/application/portalwebpage.class.inc.php @@ -558,7 +558,11 @@ EOF $this->add("
\n"); foreach($aExtraParams as $sName => $sValue) { - $this->add("\n"); + // Note: use DumpHiddenParams() to transmit arrays as hidden params + if (is_scalar($sValue)) + { + $this->add("\n"); + } } // $this->add($oAppContext->GetForForm()); $this->add("\n"); diff --git a/application/webpage.class.inc.php b/application/webpage.class.inc.php index 549208f215..929aeac477 100644 --- a/application/webpage.class.inc.php +++ b/application/webpage.class.inc.php @@ -1,5 +1,5 @@ $sValue) + foreach($aData as $sKey => $sValue) { - $this->add(""); + // Note: protection added to protect against the Notice 'array to string conversion' that appeared with PHP 5.4 + // (this function seems unused though!) + if (is_scalar($sValue)) + { + $this->add(""); + } } }