From e8417a3035b5f62bc64e4e72cb7faaeb96888bb7 Mon Sep 17 00:00:00 2001 From: Thomas de Roo <2+thomas@noreply.localhost> Date: Mon, 15 Jun 2026 12:17:10 +0200 Subject: [PATCH] Update learn.php --- learn.php | 77 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 52 insertions(+), 25 deletions(-) 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 ?> -
+ +