mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
code lisibility & filter optimization
This commit is contained in:
parent
4496df79ab
commit
ec2c84a4e9
4 changed files with 21 additions and 22 deletions
|
@ -36,11 +36,11 @@ class UserImport
|
|||
*/
|
||||
private static function checkCols($table, &$arr)
|
||||
{
|
||||
$r = DBStructure::getColumns($table);
|
||||
$tableColumns = DBStructure::getColumns($table);
|
||||
|
||||
$tcols = [];
|
||||
// get a plain array of column names
|
||||
foreach ($r as $tcol) {
|
||||
foreach ($tableColumns as $tcol) {
|
||||
$tcols[] = $tcol['Field'];
|
||||
}
|
||||
// remove inexistent columns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue