// Fix modules sort by author #PSCFV-2653

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15831 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-06-04 14:07:35 +00:00
parent 12148fa938
commit 42d1630bc4
+2 -2
View File
@@ -889,7 +889,7 @@ class AdminModulesControllerCore extends AdminController
$this->serial_modules .= $module->name.' '.$module->version.'-'.($module->active ? 'a' : 'i')."\n";
$module_author = $module->author;
if (!empty($module_author) && ($module_author != ''))
$this->modules_authors[(string)$module_author] = 'notselected';
$this->modules_authors[strtolower($module_author)] = 'notselected';
}
$this->serial_modules = urlencode($this->serial_modules);
}
@@ -974,7 +974,7 @@ class AdminModulesControllerCore extends AdminController
// setting selected author in authors set
$author_selected = substr(str_replace(array('authorModules[', "\'"), array('', "'"), $show_type_modules), 0, -1);
$this->modules_authors[$author_selected] = 'selected';
if (empty($module->author) || $module->author != $author_selected)
if (empty($module->author) || strtolower($module->author) != $author_selected)
return true;
}