Bug fix: "Not in" query was not properly displaying arguments.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8724 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-08-04 17:23:47 +00:00
parent f94ab07b93
commit f64e950463
2 changed files with 69 additions and 1 deletions

View file

@ -5,7 +5,8 @@
function ConditionArgument($name, $value, $operation){
if(isset($value) && in_array($operation, array('in', 'not in', 'between')) && !is_array($value)){
if(isset($value) && in_array($operation, array('in', 'notin', 'between')) && !is_array($value)){
$value = str_replace(' ', '', $value);
$value = explode(',', $value);
}
parent::Argument($name, $value);
@ -37,6 +38,9 @@
case 'in':
if(!is_array($value)) $this->value = array($value);
break;
case 'notin':
if(!is_array($value)) $this->value = array($value);
break;
}
}