From d3326037f24e1cea40f323521ceb061e5265d260 Mon Sep 17 00:00:00 2001 From: Franzz Date: Sat, 5 Oct 2019 12:29:20 +0200 Subject: [PATCH] Fix db definition (on install) --- inc/catc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/catc.php b/inc/catc.php index c0c7c80..afe2241 100644 --- a/inc/catc.php +++ b/inc/catc.php @@ -41,10 +41,10 @@ class CATC extends Main ( Auth::USER_TABLE => array(Db::getText(Auth::USER_TABLE), 'nickname', 'pass', 'cookie'), Course::WS_TABLE => array('dates'), - Course::COURSE_TABLE => array(Db::getId('workshops'), 'description', 'timeslot'), + Course::COURSE_TABLE => array(Db::getId(Course::WS_TABLE), 'description', 'timeslot'), Note::NOTE_TABLE => array(Db::getId(Auth::USER_TABLE), Db::getId(Course::COURSE_TABLE), 'notes'), Definition::DEF_TABLE => array(Db::getId(Auth::USER_TABLE), 'title', 'description'), - Doc::DOC_TABLE => array(Db::getId(Auth::USER_TABLE), Db::getId(Course::COURSE_TABLE), 'type', 'filename', 'filehash'), + Doc::DOC_TABLE => array(Db::getId(Auth::USER_TABLE), Db::getId(Course::WS_TABLE), 'type', 'filename', 'filehash'), 'todos' => array(Db::getId(Auth::USER_TABLE), Db::getId(Course::COURSE_TABLE), 'description') ), 'types' => array