diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-12-31 13:58:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-12-31 13:58:41 +0000 |
commit | cf54570f6c3ad03065df9ff18a57cac145305443 (patch) | |
tree | babd22755f7c896a43021f2e5f06891e06f99d3e /phpBB/includes/functions.php | |
parent | 1e334fca0edeeb519a6d59808c5d82fbc989e6e3 (diff) | |
download | forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar.gz forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar.bz2 forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar.xz forums-cf54570f6c3ad03065df9ff18a57cac145305443.zip |
- fixed [code=php]
- optimized db/mysql.php a little bit
git-svn-id: file:///svn/phpbb/trunk@5037 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 891c169dc5..8d3965d8d5 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1389,7 +1389,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) if (defined('DEBUG_EXTRA')) { // Remove me - if (!strstr($errfile, '/cache/') && !strstr($errfile, 'mysql.php') && !strstr($errfile, 'template.php')) + if (!strstr($errfile, '/cache/') && !strstr($errfile, 'template.php')) { echo "<b>PHP Notice</b>: in file <b>$errfile</b> on line <b>$errline</b>: <b>$msg_text</b><br>"; } @@ -1533,7 +1533,7 @@ function page_header($page_title = '') $reading_sql AND u.user_id = s.session_user_id ORDER BY u.username ASC, s.session_ip ASC"; - $result = $db->sql_query($sql, false); + $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { @@ -1579,6 +1579,7 @@ function page_header($page_title = '') $prev_session_ip = $row['session_ip']; } + $db->sql_freeresult($result); if (!$online_userlist) { |