* Fix program module bug.

This commit is contained in:
leiyong
2020-10-30 14:03:10 +08:00
parent 10b4182206
commit 7616d6e260
8 changed files with 29 additions and 16 deletions
+5
View File
@@ -947,6 +947,11 @@ class programModel extends model
$path = array_filter($path);
$programID = current($path);
}
elseif($program->parent == 0)
{
$programID = $program->id;
}
return $programID;
}