From 7ba36be6683ca58bef520f482a786071182377ba Mon Sep 17 00:00:00 2001 From: daitingting Date: Fri, 30 Sep 2022 03:21:09 +0000 Subject: [PATCH] * Count assetlib if edition is max. --- module/custom/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/custom/model.php b/module/custom/model.php index 1ecc2d6858..9302ab26f1 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -951,7 +951,8 @@ class customModel extends model */ public function hasAssetlibData() { - return $this->dao->select('*')->from(TABLE_ASSETLIB)->where('deleted')->eq(0)->count(); + if($this->config->edition == 'max') return $this->dao->select('*')->from(TABLE_ASSETLIB)->where('deleted')->eq(0)->count(); + return false; } /**