+ add mailExist function.
This commit is contained in:
@@ -369,6 +369,17 @@ class mailModel extends model
|
||||
$this->mta->clearAttachments();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check system if there is a mail at least.
|
||||
*
|
||||
* @access public
|
||||
* @return bool | object
|
||||
*/
|
||||
public function mailExist()
|
||||
{
|
||||
return $this->dao->select('email')->from(TABLE_USER)->where('email')->ne('')->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Is error?
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user