From 0a562d579a1fca7c617441fa2d29964643a8f979 Mon Sep 17 00:00:00 2001 From: mayue Date: Mon, 28 Mar 2022 10:58:58 +0800 Subject: [PATCH] * Optimize code. --- module/product/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index 8ce5f42821..08fe655607 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -641,8 +641,7 @@ class product extends control $unauthorizedPrograms = array(); if($this->config->systemMode == 'new') { - $this->loadModel('program'); - $programs = $this->program->getTopPairs(); + $programs = $this->loadModel('program')->getTopPairs(); /* Get unauthorized programs. */ $programIDList = array();