1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 00:27:45 +02:00

Bugtracker #4874 possible fix - ignore blank lines in sql files

This commit is contained in:
e107steved
2010-01-21 20:44:27 +00:00
parent 5685d2709c
commit 783b11a8cd

View File

@@ -9,8 +9,8 @@
* Administration - DB Verify * Administration - DB Verify
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/db_verify.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/db_verify.php,v $
* $Revision: 1.12 $ * $Revision: 1.13 $
* $Date: 2009-12-31 09:55:57 $ * $Date: 2010-01-21 20:44:27 $
* $Author: e107steved $ * $Author: e107steved $
* *
*/ */
@@ -77,6 +77,8 @@ function read_tables($tab)
foreach($file as $line) foreach($file as $line)
{ {
$line = ltrim(stripslashes($line)); $line = ltrim(stripslashes($line));
if ($line)
{
$match = array(); $match = array();
if (preg_match('/CREATE TABLE (.*) /', $line, $match)) if (preg_match('/CREATE TABLE (.*) /', $line, $match))
{ {
@@ -101,6 +103,7 @@ function read_tables($tab)
$x = 1; $x = 1;
} }
}
// Get multi-language tables as well // Get multi-language tables as well
if($pref['multilanguage']) if($pref['multilanguage'])