+2008-05-30 Martin Kutschker <masi@typo3.org>
+
+ * Fixed bug #8554: installer doesn't check DB problems when creating admin user
+
2008-05-29 Martin Kutschker <masi@typo3.org>
* Fixed bug #8270: hardcoded labels in title attributes of icons in top bar of BE interface (thanx to Stefano Kowalko)
'crdate' => time()
);
- $GLOBALS['TYPO3_DB']->exec_INSERTquery('be_users', $insertFields);
+ $result = $GLOBALS['TYPO3_DB']->exec_INSERTquery('be_users', $insertFields);
$this->isBasicComplete($headCode);
- $this->message($headCode,'User created','
- Username: <strong>'.htmlspecialchars($username).'</strong><br />
- Password: <strong>'.htmlspecialchars($pass).'</strong><br />'
- ,1,1);
+ if ($result) {
+ $this->message($headCode,'User created','
+ Username: <strong>'.htmlspecialchars($username).'</strong><br />
+ Password: <strong>'.htmlspecialchars($pass).'</strong><br />',
+ 1,1);
+ } else {
+ $this->message($headCode,'User not created','
+ Error: <strong>'.htmlspecialchars($GLOBALS['TYPO3_DB']->sql_error()).'</strong><br />',
+ 3,1);
+ }
} else {
$this->message($headCode,'Username not unique!','
The username, <strong>'.htmlspecialchars($username).'</strong>, was not unique.',2,1);