Skip to content
Permalink
Browse files

Do not use `empty()`, it's not necessary.

  • Loading branch information...
ndm2
ndm2 committed Nov 1, 2016
1 parent 2cb8533 commit e84972aca475bb5eb4fce226219c1e03ab4abb5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/SqlDialectTrait.php
@@ -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.'

0 comments on commit e84972a

Please sign in to comment.
You can’t perform that action at this time.