mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG move test file to correct folder and fix class_exists
This commit is contained in:
parent
449a41a66a
commit
d8d005d1e2
@ -522,7 +522,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
|
||||
*/
|
||||
public static function autoLogin() {
|
||||
// Don't bother trying this multiple times
|
||||
if (!class_exists('SapphireTest') || !SapphireTest::is_running_test()) {
|
||||
if (!class_exists('SapphireTest', false) || !SapphireTest::is_running_test()) {
|
||||
self::$_already_tried_to_auto_log_in = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user