diff --git a/app/controllers/oer/mymaterial.php b/app/controllers/oer/mymaterial.php index ddb5d60a83e15cb0d1cde7135575604888c2b463..54879588065c22aa00c1cc5350821a6532a047e5 100755 --- a/app/controllers/oer/mymaterial.php +++ b/app/controllers/oer/mymaterial.php @@ -213,7 +213,7 @@ class Oer_MymaterialController extends AuthenticatedController } $this->counter = OERDownloadcounter::countBySQL("material_id = ?", [$material->id]); $this->counter_today = OERDownloadcounter::countBySQL("material_id = :material_id AND mkdate >= :start", [ - 'material_id' => $materia->id, + 'material_id' => $material->id, 'start' => mktime(0, 0, 0) ]); }