mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Fixed PHP 7.3 warnings
- FIX: Silenced compact() in e107Test::testInitCore() - FIX: Null check in e_db_pdo::makeTableDef() - FIX: Null check in e_db_mysql::makeTableDef() - FIX: userlogin::login() had this warning on line 148: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
This commit is contained in:
@@ -3157,7 +3157,8 @@ class e_db_mysql implements e_db
|
||||
$dbAdm = new db_table_admin();
|
||||
|
||||
$baseStruct = $dbAdm->get_current_table($tableName);
|
||||
$fieldDefs = $dbAdm->parse_field_defs($baseStruct[0][2]); // Required definitions
|
||||
$baseStruct = isset($baseStruct[0][2]) ? $baseStruct[0][2] : null;
|
||||
$fieldDefs = $dbAdm->parse_field_defs($baseStruct); // Required definitions
|
||||
if (!$fieldDefs) return false;
|
||||
|
||||
$outDefs = array();
|
||||
|
Reference in New Issue
Block a user