Ensure we still get active if we got a real boolean.

This commit is contained in:
Andrew McMillan 2009-11-27 13:14:31 +13:00
parent 8bb9a45cbb
commit 4dcbcfadad

View File

@ -128,7 +128,7 @@ function UpdateUserFromExternal( &$usr ) {
/**
* We disallow login by inactive users _after_ we have updated the local copy
*/
if ( isset($usr->active) && $usr->active == 'f' ) return false;
if ( isset($usr->active) && ($usr->active === 'f' || $usr->active === false) ) return false;
if ( $type == 'INSERT' ) {
CreateHomeCalendar($usr->username);