Skip to content

Commit

Permalink
Stupid mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
smz committed Dec 13, 2014
1 parent f432d36 commit 010fbcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/legacy/categories/categories.php
Expand Up @@ -265,7 +265,7 @@ protected function _load($id)
->where('badcats.id is null');

// Note: i for item
if ($this->_options['currentlang'] != 0 || $this->_options['countItems'] == 1)
if ($this->_options['currentlang'] !== 0 || $this->_options['countItems'] == 1)
{
$queryjoin = $db->quoteName($this->_table) . ' AS i ON i.' . $db->quoteName($this->_field) . ' = c.id';

Expand All @@ -274,7 +274,7 @@ protected function _load($id)
$queryjoin .= ' AND i.' . $this->_statefield . ' = 1';
}

if ($this->_options['currentlang'] != 0)
if ($this->_options['currentlang'] !== 0)
{
$queryjoin .= ' AND (i.language = \'*\' OR i.language = ' . $db->quote($this->_options['currentlang']) . ')';
}
Expand Down

0 comments on commit 010fbcd

Please sign in to comment.