Coppermine photogallery installation bug

I had to repair the coppermine installtion script to get it to work correctly. In the populatemysqldb function that was CRASHING, I added a new variable $temp_data replaced all references to $GLOBALS[‘temp_data’] with the new variable and at the end assigned the local to teh global value:

$temp_data .= ‘<tr><td>’;
foreach($sql_query as $q)
{
$is_table = false;
//check if we are creating a table so we can add it to the output
if (preg_match(‘/(CREATE TABLE IF NOT EXISTS `?|CREATE TABLE `?)([\w]*)`?/i’, $q, $table_match))
{
$table = $table_match[2];
$is_table = true;
}

if (! mysql_query($q, $GLOBALS[‘mysql_connection’]))
{
$GLOBALS[‘error’] = $language[‘mysql_error’] . mysql_error($GLOBALS[‘mysql_connection’])
. ‘ ‘ . $language[‘on_q’] . ” ‘$q'”;

if ($is_table)
{
$temp_data .= “<br />” . sprintf($language[‘create_table’], $table)
. ‘&nbsp;&nbsp;&nbsp;&nbsp;’ . $language[‘status’] . ‘:… ‘ . $language[‘nok’];
}
return false;
}
else
{
if ($is_table)
{
$temp_data .= “<br />” . sprintf($language[‘create_table’], $table)
. ‘&nbsp;&nbsp;&nbsp;&nbsp;’ . $language[‘status’] . ‘:… ‘ . $language[‘ok’];
}
}
}

$GLOBALS[‘temp_data’] = $temp_data;