The following variables are the problem:
$lexicons = array_merge($lexicon_source, $lexicon_target);
$lexicons_count = count($lexicons);
It may be because $lexicon_source and $lexicon_target are not treated as arrays when empty, breaking array_merge
Is there a better way to write this to account for the possibility of an empty variable?
The following variables are the problem:
It may be because
$lexicon_sourceand$lexicon_targetare not treated as arrays when empty, breakingarray_mergeIs there a better way to write this to account for the possibility of an empty variable?