mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
Db Bug fix - skip condition if value is empty string.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9546 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9890b889ca
commit
82f117e32b
2 changed files with 17 additions and 1 deletions
|
|
@ -57,7 +57,11 @@
|
|||
}
|
||||
|
||||
function toString($value){
|
||||
if(is_array($value)) return (count($value) !== 0 ? '('.implode(',', $value).')' : '');
|
||||
if(is_array($value)){
|
||||
if(count($value) === 0) return '';
|
||||
if(count($value) === 1 && $value[0] === '') return '';
|
||||
return '('.implode(',', $value).')';
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue