From 28133770149116bfdfe6944c274e259619cb5e5e Mon Sep 17 00:00:00 2001 From: james Date: Thu, 20 Jan 2011 19:32:00 +0000 Subject: [PATCH] Also need to substr the long usernames in the installer, doh! --- install2.php | 1 + install3.php | 1 + 2 files changed, 2 insertions(+) diff --git a/install2.php b/install2.php index 6b47be5f..d6eaa004 100644 --- a/install2.php +++ b/install2.php @@ -46,6 +46,7 @@ if(!file_exists("data/config.inc.php")) } require_once("data/config.inc.php"); +$DBUSER=substr($DBUSER,0,16); mysql_connect($DBHOST,$DBUSER,$DBPASS); mysql_select_db($DBNAME); diff --git a/install3.php b/install3.php index f2d1b973..d86b8c50 100644 --- a/install3.php +++ b/install3.php @@ -42,6 +42,7 @@ require_once("data/config.inc.php"); require_once("config_editor.inc.php"); require_once("user.inc.php"); require_once("committee.inc.php"); +$DBUSER=substr($DBUSER,0,16); mysql_connect($DBHOST,$DBUSER,$DBPASS); mysql_select_db($DBNAME);