Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes (#191)
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
aimeos committed Mar 5, 2020
1 parent d821c78 commit 3aa9cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Index/Manager/DBBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ protected function getSQLReplacements( \Aimeos\MW\Criteria\Iface $search, array

if( empty( $search->getSortations() ) && ( $attribute = reset( $attributes ) ) !== false )
{
$search = (clone $search)->setSortations( [$search->sort( '+', $attribute->getCode() )] );
$search = ( clone $search )->setSortations( [$search->sort( '+', $attribute->getCode() )] );
}
elseif( !empty( $search->getSortations() ) )
{
Expand Down

0 comments on commit 3aa9cbb

Please sign in to comment.