From: Henry S. <kel...@ph...> - 2009-07-19 09:51:55
|
Author: Kellanved Date: Sun Jul 19 09:51:25 2009 New Revision: 9793 Log: First round of fixes Modified: branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php Modified: branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php (original) --- branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php Sun Jul 19 09:51:25 2009 *************** *** 97,106 **** include("$phpbb_root_path/includes/db/db_tools.$phpEx"); } $db_tool = new phpbb_db_tools($db); ! if (!$db_tool->sql_table_exists(QUESTIONS_TABLE)) ! { ! return false; ! } } function is_available() --- 97,103 ---- include("$phpbb_root_path/includes/db/db_tools.$phpEx"); } $db_tool = new phpbb_db_tools($db); ! return $db_tool->sql_table_exists(QUESTIONS_TABLE); } function is_available() *************** *** 109,115 **** $user->add_lang('captcha_qa'); ! if (self::is_installed()) { return false; } --- 106,112 ---- $user->add_lang('captcha_qa'); ! if (!self::is_installed()) { return false; } |