fix merging conditions

This commit is contained in:
Isaac Connor 2018-02-09 07:57:52 -08:00
parent 0052d1b02e
commit a35ba812b7
1 changed files with 1 additions and 1 deletions

View File

@ -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];