* Fix bug.

This commit is contained in:
leiyong
2021-04-01 09:57:12 +03:00
parent b24b6a2744
commit abd8af87a6
15 changed files with 31 additions and 15 deletions
+2 -1
View File
@@ -701,7 +701,8 @@ class program extends control
*/
public function view($programID)
{
$program = $this->program->getByID($programID);
$programID = (int)$programID;
$program = $this->program->getByID($programID);
if(!$program) die(js::error($this->lang->notFound) . js::locate('back'));
echo $this->fetch('program', 'product', "programID=$programID");