diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index b78c56188..0846137a0 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1265,7 +1265,10 @@ def alterTable(): def getTotalStatistics(): st = status() data = {} - if st == 'start': + + isInstall = os.path.exists(getServerDir() + '/version.pl') + + if st == 'start' and isInstall: data['status'] = True data['count'] = pSqliteDb('databases').count() data['ver'] = mw.readFile(getServerDir() + '/version.pl').strip()