mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
Bugtracker #4874 possible fix - ignore blank lines in sql files
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
* Administration - DB Verify
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/db_verify.php,v $
|
||||
* $Revision: 1.12 $
|
||||
* $Date: 2009-12-31 09:55:57 $
|
||||
* $Revision: 1.13 $
|
||||
* $Date: 2010-01-21 20:44:27 $
|
||||
* $Author: e107steved $
|
||||
*
|
||||
*/
|
||||
@@ -77,6 +77,8 @@ function read_tables($tab)
|
||||
foreach($file as $line)
|
||||
{
|
||||
$line = ltrim(stripslashes($line));
|
||||
if ($line)
|
||||
{
|
||||
$match = array();
|
||||
if (preg_match('/CREATE TABLE (.*) /', $line, $match))
|
||||
{
|
||||
@@ -101,6 +103,7 @@ function read_tables($tab)
|
||||
|
||||
$x = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Get multi-language tables as well
|
||||
if($pref['multilanguage'])
|
||||
|
Reference in New Issue
Block a user