Fixed MySQL Warning while creating a new user
This commit is contained in:
@@ -910,7 +910,7 @@ if ($page == 'customers'
|
|||||||
'customerid' => $customerid,
|
'customerid' => $customerid,
|
||||||
'adminid' => $userinfo['adminid'],
|
'adminid' => $userinfo['adminid'],
|
||||||
'docroot' => $documentroot,
|
'docroot' => $documentroot,
|
||||||
'adddate' => date('Y-m-d'),
|
'adddate' => time(),
|
||||||
'phpenabled' => $phpenabled
|
'phpenabled' => $phpenabled
|
||||||
);
|
);
|
||||||
$ins_stmt = Database::prepare("
|
$ins_stmt = Database::prepare("
|
||||||
@@ -1283,7 +1283,7 @@ if ($page == 'customers'
|
|||||||
'customerid' => $result['customerid'],
|
'customerid' => $result['customerid'],
|
||||||
'adminid' => $userinfo['adminid'],
|
'adminid' => $userinfo['adminid'],
|
||||||
'docroot' => $result['documentroot'],
|
'docroot' => $result['documentroot'],
|
||||||
'adddate' => date('Y-m-d')
|
'adddate' => time()
|
||||||
);
|
);
|
||||||
$ins_stmt = Database::prepare("
|
$ins_stmt = Database::prepare("
|
||||||
INSERT INTO `" . TABLE_PANEL_DOMAINS . "` SET
|
INSERT INTO `" . TABLE_PANEL_DOMAINS . "` SET
|
||||||
|
|||||||
Reference in New Issue
Block a user