nieuwe versie
This commit is contained in:
@@ -87,15 +87,17 @@ class Sopoud extends MY_Controller{
|
||||
function Getversies($profielid,$chapterid){
|
||||
$versies = [];
|
||||
$hoofdstuk = $this->Hoofdstukken_model->get_record_by_id($chapterid);
|
||||
if ($hoofdstuk->module == 0 ) return $versies;
|
||||
|
||||
$module = $this->Modules_model->get_record_by_id($hoofdstuk->module);
|
||||
if ($module->versietype == 1) {
|
||||
$versies = $this->getschooljaarversies($profielid, $chapterid);
|
||||
}
|
||||
if ($module->versietype == 2) {
|
||||
$versies = $this->getlijstversies($profielid, $module->sysnr, $chapterid);
|
||||
} ;
|
||||
$module = $this->Modules_model->get_record_by_id( $hoofdstuk->module);
|
||||
|
||||
if($module){
|
||||
if (intval($module->versietype) == 1) {
|
||||
$versies = $this->getschooljaarversies($profielid, $chapterid);
|
||||
}
|
||||
if (intval($module->versietype) == 2) {
|
||||
$versies = $this->getlijstversies($profielid, $module->sysnr, $chapterid);
|
||||
} ;
|
||||
}
|
||||
|
||||
return $versies;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user