fix a bug for dailyreminder($this->app->user->account in mail's model.php is null when send email).

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-23 06:18:55 +00:00
parent bdb3f05673
commit 27b4997d7e
+1 -1
View File
@@ -117,7 +117,7 @@ class mailModel extends model
/* Process toList and ccList, remove current user from them. If toList is empty, use the first cc as to. */
if($includeMe == false)
{
$account = $this->app->user->account;
$account = isset($this->app->user->account) ? $this->app->user->account : '';
$toList = $toList ? explode(',', str_replace(' ', '', $toList)) : array();
$ccList = $ccList ? explode(',', str_replace(' ', '', $ccList)) : array();