17
@ Sabahan: Quote:
XOOPS 2.5.6 package in news release is still not updated..no xoopscomments table
Uploading, as we speak.... @geekwright: Quote:
The only curious thing under 5.4 was that logger shows this message on the admin preferences general settings: Notice: Array to string conversion in file /class/xoopsform/formhidden.php line 78
I think, I fixed, but before I submit it to SVN, I sent to the Core Team to see if they know a better way. Basically, what it is, in formhidden.php we assign an array value to a string:
function setValue($value)
{
$this->_value = $value;
}
It works fine, but when we read it back with "getValue" in:
function render()
{
return '. $this->getName() . '" id="' . $this->getName() . '" value="' . $this->getValue() . '" />';
}
PHP complains. So I've changed the saving routine to check first if this is an array:
function setValue($value)
{
if (is_array($value)) {
$this->_value = $value[0];
} else {
$this->_value = $value;
}
}
and it's working fine, but I want to make sure that this change won't impart something else in the Core. Once the Core Team is OK with it, I'll commit it to SVN.