Skip to content

Commit

Permalink
Do not use empty(), it's not necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm2 committed Nov 1, 2016
1 parent 2cb8533 commit e84972a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/SqlDialectTrait.php
Expand Up @@ -208,7 +208,7 @@ protected function _updateQueryTranslator($query)
*/
protected function _removeAliasesFromConditions($query)
{
if (!empty($query->clause('join'))) {
if ($query->clause('join')) {
throw new \RuntimeException(
'Aliases are being removed from conditions for UPDATE/DELETE queries, ' .
'this can break references to joined tables.'
Expand Down

0 comments on commit e84972a

Please sign in to comment.