on 2.6.7
Code: Select all
if( empty($w3all_phpbb_connection) ){
return array();
}
ob_start();
$a = $w3all_phpbb_connection->get_results("SELECT config_value FROM ". $w3all_config["table_prefix"] ."config WHERE config_name IN('allow_autologin','avatar_gallery_path','avatar_path','avatar_salt','cookie_domain','cookie_name','default_dateformat','default_lang','load_online_time','max_autologin_time','newest_user_id','newest_username','num_posts','num_topics','num_users','rand_seed','rand_seed_last_update','record_online_users','script_path','session_length','version') ORDER BY config_name ASC");
ob_get_contents();
ob_end_clean();
become:
Code: Select all
if( empty($w3all_phpbb_connection) OR empty($w3all_config["table_prefix"])){
return array();
}
$a = $w3all_phpbb_connection->get_results("SELECT config_value FROM ". $w3all_config["table_prefix"] ."config WHERE config_name IN('allow_autologin','avatar_gallery_path','avatar_path','avatar_salt','cookie_domain','cookie_name','default_dateformat','default_lang','load_online_time','max_autologin_time','newest_user_id','newest_username','num_posts','num_topics','num_users','rand_seed','rand_seed_last_update','record_online_users','script_path','session_length','version') ORDER BY config_name ASC");
the
ob_start(); code refer to a test i did to try to resolve the fact that if the connection values are wrong and the wp is set on debug mode, it fall into error that is not resolvable (until you do not set debug mode into false on wp-config.php or disable the plugin).
It by the way, do not resolve the problem. If on debug mode, and the connection value is wrong the mysql connection error make it fall wp into a fatal php error. I assume so that only
ob_start(); would may be removed since not useful, and the remaining, do not interfere at all into the result,in any case.