diff --git a/web/admin/site/php.py b/web/admin/site/php.py index 8808e6b39a..0847fc83e3 100644 --- a/web/admin/site/php.py +++ b/web/admin/site/php.py @@ -32,7 +32,8 @@ def get_cli_php_version(): return mw.returnData(False, '未安装PHP,无法设置') php_bin = '/usr/bin/php' - php_versions = MwSites.instance().getPhpVersion() + data = MwSites.instance().getPhpVersion() + php_versions = data['data'] php_versions = php_versions[1:] if len(php_versions) < 1: