BUGFIX has_default_admin was using $default_admin instead of $default_username

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43762 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-10-24 01:15:53 +00:00
parent 95ea169907
commit 88da4cf399

View File

@ -525,7 +525,7 @@ class Security extends Controller {
* Check that the default admin account has been set.
*/
public static function has_default_admin() {
return !empty(self::$default_admin) && !empty(self::$default_password);
return !empty(self::$default_username) && !empty(self::$default_password);
}
/**