* Move die to return.

This commit is contained in:
zhujinyong
2022-02-22 09:02:00 +08:00
parent b17c3c8206
commit 002e215a3d
11 changed files with 122 additions and 124 deletions
+2 -2
View File
@@ -489,7 +489,7 @@ class installModel extends model
catch (PDOException $exception)
{
echo $exception->getMessage();
die();
helper::end();
}
return true;
}
@@ -502,7 +502,7 @@ class installModel extends model
*/
public function grantPriv()
{
if($this->post->password == '') die(js::error($this->lang->install->errorEmptyPassword));
if($this->post->password == '') return print(js::error($this->lang->install->errorEmptyPassword));
/* Insert a company. */
$company = new stdclass();