const EXCEPTION_USERNAME_NOT_FOUND = 0x150;
const EXCEPTION_USER_EMAIL_NOT_FOUND = 0x151;
const EXCEPTION_USER_PASS_MISMATCH = 0x152;
+ const EXCEPTION_USER_IS_GUEST = 0x153;
/**
* Username of current user
$exists = FALSE;
// Is a previous result there?
- if (is_null($this->getResultInstance())) {
+ if (!$this->getResultInstance() instanceof SearchableResult) {
// Get a UserDatabaseWrapper instance
$wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper_class');
$exists = FALSE;
// Is a previous result there?
- if (is_null($this->getResultInstance())) {
+ if (!$this->getResultInstance() instanceof SearchableResult) {
// Get a UserDatabaseWrapper instance
$wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper_class');
$matches = FALSE;
// Is a previous result there?
- if (is_null($this->getResultInstance())) {
+ if ((!$this->getResultInstance() instanceof SearchableResult) || ($this->getResultInstance()->count() == 0)) {
// Get a UserDatabaseWrapper instance
$wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper_class');