* [misc] Add the function of getProgram for tutorial.
This commit is contained in:
@@ -146,6 +146,8 @@ class programModel extends model
|
||||
*/
|
||||
public function getByID(int $programID = 0): object|false
|
||||
{
|
||||
if(common::isTutorialMode()) return $this->loadModel('tutorial')->getProgram();
|
||||
|
||||
$program = $this->fetchByID($programID);
|
||||
if(!$program) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user