Sync: fix issues with PHP 5.3
Problem has been introduced with f885d90
fixes #906
This commit is contained in:
parent
a63135be2a
commit
6de258730b
library/Director/Import
|
@ -268,8 +268,10 @@ class Sync
|
|||
$filterColumns[$column] = $column;
|
||||
}
|
||||
}
|
||||
foreach (SyncUtils::getRootVariables($filterColumns) as $column) {
|
||||
$usedColumns[$column] = $column;
|
||||
if (! empty($filterColumns)) {
|
||||
foreach (SyncUtils::getRootVariables($filterColumns) as $column) {
|
||||
$usedColumns[$column] = $column;
|
||||
}
|
||||
}
|
||||
|
||||
$rows = $run->fetchRows($usedColumns);
|
||||
|
|
|
@ -125,6 +125,10 @@ class SyncUtils
|
|||
}
|
||||
}
|
||||
|
||||
if (empty($res)) {
|
||||
return array();
|
||||
}
|
||||
|
||||
return array_combine($res, $res);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue