Skip to content

Commit

Permalink
// small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rGaillard committed Dec 11, 2014
1 parent cd13df6 commit f249f4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions controllers/admin/AdminPaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ public function renderModulesList()
{
if ($this->getModulesList($this->filter_modules_list))
{
$active_list = array();
foreach ($this->modules_list as $key => $module)
{
if (in_array($module->name, $this->list_partners_modules))
Expand All @@ -270,7 +269,13 @@ public function renderModulesList()
if ($module->active)
$active_list[] = $module;
else
$unactive_list[] = $module;
$unactive_list[] = $module;
}

if (count($unactive_list))
{
shuffle($unactive_list);
$unactive_list = array_slice($unactive_list, 0, 4, true);
}

$helper = new Helper();
Expand Down

0 comments on commit f249f4d

Please sign in to comment.