* Adjust response when there is no program.

This commit is contained in:
daitingting
2024-01-03 10:55:53 +00:00
parent e76b73e84c
commit eaee022966
+1 -1
View File
@@ -101,7 +101,7 @@ class program extends control
if($programID && !isset($programPairs[$programID]))
{
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'fail', 'message' => '404 Not found'));
return $this->send(array('result' => 'fail', 'message' => $this->lang->notFound, 'load' => $this->createLink('program', 'browse')));
return $this->send(array('result' => 'success', 'load' => array('alert' => $this->lang->notFound, 'locate' => $this->createLink('program', 'browse'))));
}
$programID = $this->program->checkAccess($programID, $programPairs);