Skip to content

Commit

Permalink
More code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Oct 14, 2012
1 parent d76b746 commit 70dd6e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libraries/cms/html/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function options($extension, $config = array('filter.published' =>
}
}

// filter on the language
// Filter on the language
if (isset($config['filter.language']))
{
if (is_string($config['filter.language']))
Expand All @@ -77,7 +77,8 @@ public static function options($extension, $config = array('filter.published' =>
}
elseif (is_array($config['filter.language']))
{
foreach ($config['filter.language'] as &$language) {
foreach ($config['filter.language'] as &$language)
{
$language = $db->quote($language);
}
$query->where('a.language IN (' . implode(',', $config['filter.language']) . ')');
Expand Down
2 changes: 1 addition & 1 deletion libraries/cms/menu/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function getItems($attributes, $values, $firstonly = false)
}
}

// reset arrays or we get a notice if some values were unset
// Reset arrays or we get a notice if some values were unset
$attributes = array_values($attributes);
$values = array_values($values);

Expand Down

0 comments on commit 70dd6e9

Please sign in to comment.