dever 3 years ago
parent
commit
e20c7dad4e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/option/src/My.php

+ 1 - 1
service/option/src/My.php

@@ -202,7 +202,7 @@ class My extends Core
             Dever::db('option/account')->update($where);
         }
 
-        if ($where['is_email'] == 2) {
+        if (isset($where['is_email']) && $where['is_email'] == 2) {
             $code = Dever::load('passport/reg')->code(false, false);
             $email = base64_encode($where['email']);
             Dever::daemon('lib/email.renzheng?aid='.$this->uid.'&email=' . $email . '&code=' . $code . '&username=' . $this->user['name'], 'option');