|
|
@ -462,8 +462,12 @@ class ActivityController extends Controller |
|
|
|
do { |
|
|
|
do { |
|
|
|
array_pop($activityStack); |
|
|
|
array_pop($activityStack); |
|
|
|
$lastStack = end($activityStack); |
|
|
|
$lastStack = end($activityStack); |
|
|
|
if ($activity->level > $lastStack->level) |
|
|
|
if ($lastStack) { |
|
|
|
|
|
|
|
if ($activity->level > $lastStack->level) |
|
|
|
|
|
|
|
$lastStackIsNotRight = false; |
|
|
|
|
|
|
|
} else { |
|
|
|
$lastStackIsNotRight = false; |
|
|
|
$lastStackIsNotRight = false; |
|
|
|
|
|
|
|
} |
|
|
|
} while ($lastStackIsNotRight); |
|
|
|
} while ($lastStackIsNotRight); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|