Skip to content

Commit

Permalink
Merge pull request #5 from Every0ne/patch-1
Browse files Browse the repository at this point in the history
Bug/typo fix that caused a PHP warning
  • Loading branch information
lokothodida authored Jan 18, 2020
2 parents 39669fc + b99b17b commit ec22108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_menu/php/data.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static protected function strtoslug($string) {
// transliteration
static protected function transliterate($string) {
global $i18n;
if (isset($i18n['TRANSLITERATION']) && is_array($translit = $i18n['TRANSLITERATION']) && count($translit > 0)) {
if (isset($i18n['TRANSLITERATION']) && is_array($translit = $i18n['TRANSLITERATION']) && count($translit) > 0) {
$string = str_replace(array_keys($translit), array_values($translit), $string);
}
return $string;
Expand Down Expand Up @@ -190,4 +190,4 @@ static public function menuExists($slug) {
static public function getMenuFilename($slug) {
return GSDATAOTHERPATH . CustomMenu::FILE . '/' . $slug . self::EXT;
}
}
}

0 comments on commit ec22108

Please sign in to comment.