Skip to content

Commit 661f8b2

Browse files
committed
Merge pull request #16 from caxy/feature-list_diffing-new
Missed an array_column in ListDiff. Updated to use ArrayColumn function.
2 parents 5057306 + 39a4320 commit 661f8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Caxy/HtmlDiff/ListDiff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function ($v) use ($percent) {
240240
* Loop through all the old lists, any that has not been added, will be added as:
241241
* array( new => null, old => oldItemId )
242242
*/
243-
$matchColumns = array_column($matches, 'old');
243+
$matchColumns = $this->getArrayColumn($matches, 'old');
244244
foreach ($this->childLists['old'] as $thisKey => $thisList) {
245245
if (!in_array($thisKey, $matchColumns)) {
246246
$matches[] = array('new' => null, 'old' => $thisKey);

0 commit comments

Comments
 (0)