diff --git a/framework/helper.class.php b/framework/helper.class.php index b69232705e..91d903476a 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -255,7 +255,7 @@ class helper extends baseHelper * @param string $content * @return void */ - public static function die($content) + public static function end($content) { throw EndResponseException::create($content); } diff --git a/module/my/control.php b/module/my/control.php index 8d037b644b..748fcb8c36 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -826,7 +826,7 @@ class my extends control $_POST['account'] = $this->app->user->account; $_POST['groups'] = $this->dao->select('`group`')->from(TABLE_USERGROUP)->where('account')->eq($this->post->account)->fetchPairs('group', 'group'); $this->user->update($this->app->user->id); - if(dao::isError()) helper::die(js::error(dao::getError())); + if(dao::isError()) helper::end(js::error(dao::getError())); echo js::locate($this->createLink('my', 'profile'), 'parent'); return; }