minor improvements

This commit is contained in:
Andy Miller
2017-08-31 12:46:51 -06:00
parent 7957381889
commit 4311b80eec
3 changed files with 25 additions and 6 deletions

View File

@@ -1776,4 +1776,17 @@ class Admin
}
return true;
}
public static function doAnyUsersExist()
{
// check for existence of a user account
$account_dir = $file_path = Grav::instance()['locator']->findResource('account://');
$user_check = glob($account_dir . '/*.yaml');
if ($user_check != false && count((array)$user_check) > 0) {
return true;
}
return false;
}
}