Skip to content

Commit

Permalink
Update php.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 25, 2024
1 parent af85245 commit 62223d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/admin/site/php.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 62223d5

Please sign in to comment.