Theme.class: fixed get_exercicesOrdered
This commit is contained in:
parent
3c4b6296ba
commit
0db1d6a0c1
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ class Theme
|
||||||
|
|
||||||
for ($i = 0; $i < $size; $i++)
|
for ($i = 0; $i < $size; $i++)
|
||||||
{
|
{
|
||||||
for ($j = 0; $j < $size; $i++)
|
for ($j = $i; $j < $size; $j++)
|
||||||
{
|
{
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
{
|
{
|
||||||
|
@ -121,7 +121,7 @@ class Theme
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($res[$j]['require'] == $res[$i]['id'])
|
if ($res[$j]['require'] == $res[$i - 1]['id'])
|
||||||
{
|
{
|
||||||
$tmp = $res[$i];
|
$tmp = $res[$i];
|
||||||
$res[$i] = $res[$j];
|
$res[$i] = $res[$j];
|
||||||
|
|
Reference in a new issue