diff --git a/phpBB/admin/admin_db_utilities.php b/phpBB/admin/admin_db_utilities.php index 3a2d424b07..6543d128b2 100644 --- a/phpBB/admin/admin_db_utilities.php +++ b/phpBB/admin/admin_db_utilities.php @@ -376,7 +376,7 @@ function get_table_def_mysql($table, $crlf) // Ok lets grab the fields... // $result = $db->sql_query($field_query); - if(!result) + if(!$result) { message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $field_query); } diff --git a/phpBB/config.php b/phpBB/config.php index 24fdcea851..e69de29bb2 100644 --- a/phpBB/config.php +++ b/phpBB/config.php @@ -1,19 +0,0 @@ - \ No newline at end of file diff --git a/phpBB/login.php b/phpBB/login.php index 2395e995a9..8be7cf5d67 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -98,7 +98,8 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($ else { $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : ''; - + $redirect = str_replace("?", "&", $redirect); + $template->assign_vars(array( 'META' => '') ); @@ -112,6 +113,7 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($ else { $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : ""; + $redirect = str_replace("?", "&", $redirect); $template->assign_vars(array( 'META' => '') @@ -176,7 +178,6 @@ else if( preg_match("/^redirect=(.*)$/si", $forward_to, $forward_matches) ) { $forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1]; - $forward_match = explode('&', $forward_to); if(count($forward_match) > 1) @@ -194,7 +195,6 @@ else $forward_page .= $forward_match[$i]; } } - $forward_page = $forward_match[0] . '?' . $forward_page; } else diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 0cd475941d..055d801f8d 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -566,7 +566,7 @@ if( $total_topics ) else { $folder_image = $folder_new; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; + $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts']; $newest_post_img = '' . $lang['View_newest_post'] . ' '; }