fix merging conditions
This commit is contained in:
parent
0052d1b02e
commit
a35ba812b7
|
@ -74,7 +74,7 @@ foreach ( array('ServerId','StorageId','Status') as $filter ) {
|
|||
if ( isset($_SESSION[$filter]) ) {
|
||||
if ( is_array($_SESSION[$filter]) ) {
|
||||
$conditions[] = $filter . ' IN ('.implode(',', array_map(function(){return '?';}, $_SESSION[$filter] ) ). ')';
|
||||
$values += $_SESSION[$filter];
|
||||
$values = array_merge( $values, $_SESSION[$filter] );
|
||||
} else {
|
||||
$conditions[] = $filter . '=?';
|
||||
$values[] = $_SESSION[$filter];
|
||||
|
|
Loading…
Reference in New Issue