Db Bug fix - skip condition if value is empty array.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9545 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-10-10 16:05:24 +00:00
parent 308d1606a7
commit 9890b889ca
2 changed files with 14 additions and 1 deletions

View file

@ -57,7 +57,7 @@
}
function toString($value){
if(is_array($value)) return '('.implode(',', $value).')';
if(is_array($value)) return (count($value) !== 0 ? '('.implode(',', $value).')' : '');
return $value;
}