diff --git a/install_.php b/install_.php
index 10380c99a..585184756 100644
--- a/install_.php
+++ b/install_.php
@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/install_.php,v $
-| $Revision: 1.15 $
-| $Date: 2008-12-27 21:41:33 $
-| $Author: mcfly_e107 $
+| $Revision: 1.16 $
+| $Date: 2009-01-04 16:39:14 $
+| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -776,20 +776,23 @@ This file has been generated by the installation script.
$sql_data = fread($fd, filesize($filename));
fclose ($fd);
- if (!$sql_data) {
+ if (!$sql_data)
+ {
return nl2br(LANINS_060)."
";
}
preg_match_all("/create(.*?)myisam;/si", $sql_data, $result );
- foreach ($result[0] as $sql_table) {
+ foreach ($result[0] as $sql_table)
+ {
preg_match("/CREATE TABLE\s(.*?)\s\(/si", $sql_table, $match);
$tablename = $match[1];
preg_match_all("/create(.*?)myisam;/si", $sql_data, $result );
$sql_table = preg_replace("/create table\s/si", "CREATE TABLE {$this->previous_steps['mysql']['prefix']}", $sql_table);
- //if (!mysql_query($sql_table, $link)) {
- // return nl2br(LANINS_061."\n\n".LANINS_083."\n".mysql_error($link)."");
- //}
+ if (!mysql_query($sql_table, $link))
+ {
+ return nl2br(LANINS_061."\n\n".LANINS_083."\n".mysql_error($link)."");
+ }
}
$datestamp = time();