From 296b1cfe86f091a4ece95fc811e98e0144911a09 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 13 Dec 2024 01:14:25 +0800 Subject: [PATCH] Update site.py --- web/utils/site.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 33eb03133b..6ec5657482 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -2484,6 +2484,8 @@ def getPhpVersion(self): # 其他PHP安装类型 conf_dir = mw.getServerDir() + "/web_conf/php/conf" + if not os.path.exists(conf_dir): + return data conf_list = os.listdir(conf_dir) l = len(conf_list) rep = r"enable-php-(.*?)\.conf"