* Reviewing code fix details.

This commit is contained in:
Yagami
2021-03-02 09:04:34 +08:00
parent 37477cce69
commit 4b7a9427a2
26 changed files with 82 additions and 85 deletions
+5 -4
View File
@@ -465,12 +465,13 @@ class programModel extends model
*/
public function getTopPGMByID($programID)
{
$topPGM = 0;
if(empty($programID)) return $topPGM;
if(empty($programID)) return 0;
$program = $this->getPGMByID($programID);
if(!empty($program)) list($topPGM) = explode(',', trim($program->path, ','));
return $topPGM;
if(empty($program)) return 0;
$path = explode(',', trim($program->path, ','));
return $path[0];
}
/**