mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1905 array to string conversion in Extravar.class.php
This commit is contained in:
parent
742c20658f
commit
a823d604de
1 changed files with 5 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ class ExtraItem
|
|||
*
|
||||
* @param string $type Type of variable
|
||||
* @param string $value Value
|
||||
* @return string Returns a converted value
|
||||
* @return string|array Returns a converted value
|
||||
*/
|
||||
function _getTypeValue($type, $value)
|
||||
{
|
||||
|
|
@ -321,7 +321,7 @@ class ExtraItem
|
|||
/**
|
||||
* Returns a value for HTML
|
||||
*
|
||||
* @return string Returns filtered value
|
||||
* @return string|array Returns filtered value
|
||||
*/
|
||||
function getValue()
|
||||
{
|
||||
|
|
@ -510,7 +510,7 @@ class ExtraItem
|
|||
foreach($default as $v)
|
||||
{
|
||||
$checked = '';
|
||||
if(strval($value) !== '' && in_array(trim($v), $value))
|
||||
if(is_array($value) && in_array(trim($v), $value))
|
||||
{
|
||||
$checked = ' checked="checked"';
|
||||
}
|
||||
|
|
@ -528,7 +528,7 @@ class ExtraItem
|
|||
foreach($default as $v)
|
||||
{
|
||||
$selected = '';
|
||||
if(strval($value) !== '' && in_array(trim($v), $value))
|
||||
if(is_array($value) && in_array(trim($v), $value))
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
|
|
@ -542,7 +542,7 @@ class ExtraItem
|
|||
foreach($default as $v)
|
||||
{
|
||||
$checked = '';
|
||||
if(strval($value) !== '' && in_array(trim($v), $value))
|
||||
if(is_array($value) && in_array(trim($v), $value))
|
||||
{
|
||||
$checked = ' checked="checked"';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue