diff options
| author | David M <davidmj@users.sourceforge.net> | 2007-07-30 21:10:40 +0000 |
|---|---|---|
| committer | David M <davidmj@users.sourceforge.net> | 2007-07-30 21:10:40 +0000 |
| commit | b1d0fa5d3592871587f6d408b2782df09e8b5d51 (patch) | |
| tree | 31c752ff246cfe60e79c4364258cb69e42aec84e /phpBB/install/database_update.php | |
| parent | 63588e28e0582b5e54fb9ae7ead5e048e8418ad4 (diff) | |
| download | forums-b1d0fa5d3592871587f6d408b2782df09e8b5d51.tar forums-b1d0fa5d3592871587f6d408b2782df09e8b5d51.tar.gz forums-b1d0fa5d3592871587f6d408b2782df09e8b5d51.tar.bz2 forums-b1d0fa5d3592871587f6d408b2782df09e8b5d51.tar.xz forums-b1d0fa5d3592871587f6d408b2782df09e8b5d51.zip | |
remove debug code...
git-svn-id: file:///svn/phpbb/trunk@7983 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/database_update.php')
| -rw-r--r-- | phpBB/install/database_update.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index a2557eba8b..d7713bebd1 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -1539,19 +1539,12 @@ function _sql($sql, &$errored, &$error_ary, $echo_dot = true) $db->sql_return_on_error(true); - if (preg_match('/^\\s*SELECT/', $sql)) - { - $result = $db->sql_query($sql); - if ($db->sql_error_triggered) - { - $errored = true; - $error_ary['sql'][] = $db->sql_error_sql; - $error_ary['error_code'][] = $db->_sql_error(); - } - } - else + $result = $db->sql_query($sql); + if ($db->sql_error_triggered) { - var_dump($sql); + $errored = true; + $error_ary['sql'][] = $db->sql_error_sql; + $error_ary['error_code'][] = $db->_sql_error(); } $db->sql_return_on_error(false); @@ -1561,7 +1554,7 @@ function _sql($sql, &$errored, &$error_ary, $echo_dot = true) echo ". \n"; flush(); } -if (preg_match('/^\\s*SELECT/', $sql)) + return $result; } |
