summaryrefslogtreecommitdiff
path: root/install_packages.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-02-15 23:01:01 +0000
committerChristian Fowler <spider@viovio.com>2006-02-15 23:01:01 +0000
commit68f44cb2a46891cc8c78f7216c16b1e0e9e280db (patch)
treea7c1c3e48fb5d1881a71b21fecdf231a0e34be18 /install_packages.php
parent9dcc701fb3a4ba5dd44646dab2566440592b1f73 (diff)
downloadinstall-68f44cb2a46891cc8c78f7216c16b1e0e9e280db.tar.gz
install-68f44cb2a46891cc8c78f7216c16b1e0e9e280db.tar.bz2
install-68f44cb2a46891cc8c78f7216c16b1e0e9e280db.zip
dump errors if user create fails, nuke ancient process_sql function
Diffstat (limited to 'install_packages.php')
-rw-r--r--install_packages.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/install_packages.php b/install_packages.php
index 6f969b2..26cb057 100644
--- a/install_packages.php
+++ b/install_packages.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.28 2006/02/08 21:51:13 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.29 2006/02/15 23:01:01 spiderr Exp $
* @package install
* @subpackage functions
*/
@@ -221,6 +221,8 @@ if( !empty( $_REQUEST['cancel'] ) ) {
if( $rootUser->store( $storeHash ) ) {
$gBitUser->mDb->query( "INSERT INTO `".BIT_DB_PREFIX."users_groups` (`user_id`, `group_id`, `group_name`,`group_desc`) VALUES ( ".ROOT_USER_ID.", 1, 'Administrators','Site operators')" );
$rootUser->addUserToGroup( ROOT_USER_ID, 1 );
+ } else {
+ vd( $rootUser->mErrors );
}
// now let's set up some default data. Group_id's are hardcoded in users/schema_inc defaults