Skip to content

Commit

Permalink
fix bug with countActiveLanguages(), was missing active check in Db…
Browse files Browse the repository at this point in the history
…Query
  • Loading branch information
yaniv14 authored and firstred committed Jul 29, 2017
1 parent c1a647f commit 8594c9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/Language.php
Expand Up @@ -370,6 +370,7 @@ public static function countActiveLanguages($idShop = null)
->from('lang', 'l')
->innerJoin('lang_shop', 'ls', 'ls.`id_lang` = l.`id_lang`')
->where('ls.`id_shop` = '.(int) $idShop)
->where('l.`active` = 1')
);
}

Expand Down

0 comments on commit 8594c9f

Please sign in to comment.