diff --git a/learn.php b/learn.php index 450b93c..0ae7b43 100644 --- a/learn.php +++ b/learn.php @@ -21,23 +21,7 @@ if (!$data) { } // kies woord -require_once 'includes/srs_queue.php'; -$words = $data['words']; - -$words = sortDueWords($words); - -$today = date('Y-m-d'); - -$due = array_filter($words, function ($w) use ($today) { - return !isset($w['nextReview']) || $w['nextReview'] <= $today; -}); - -if (count($due) > 0) { - $word = array_values($due)[0]; -} else { - $word = $words[0]; -} ?> @@ -56,22 +40,17 @@ if (count($due) > 0) {
Vertaal: -= htmlspecialchars($word['question']) ?> +
- + - + --Correct: = $word['correct'] ?? 0 ?> -| Fout: = $word['wrong'] ?? 0 ?> -
+ +