mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
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:
parent
f94ab07b93
commit
f64e950463
2 changed files with 69 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue