dever %!s(int64=3) %!d(string=hai) anos
pai
achega
e20c7dad4e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');