Browse Source

Fix handling default value

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
8c817ac2f3
  1. 6
      app/Http/Controllers/ActivityController.php

6
app/Http/Controllers/ActivityController.php

@ -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);
} }

Loading…
Cancel
Save