mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/16955] Clean up code in db classes
PHPBB3-16955
This commit is contained in:
@@ -194,12 +194,12 @@ class mssql_extractor extends base_extractor
|
||||
* Extracts data from database table (for MSSQL Native driver)
|
||||
*
|
||||
* @param string $table_name name of the database table
|
||||
* @return null
|
||||
* @return void
|
||||
* @throws extractor_not_initialized_exception when calling this function before init_extractor()
|
||||
*/
|
||||
protected function write_data_mssqlnative($table_name)
|
||||
{
|
||||
if (!$this->is_initialized)
|
||||
if (!$this->is_initialized || !$this->db instanceof \phpbb\db\driver\mssqlnative)
|
||||
{
|
||||
throw new extractor_not_initialized_exception();
|
||||
}
|
||||
|
Reference in New Issue
Block a user