magento 1.9 – Productimg.php errorlog in system.log

I upgrade Magento from 1.9.3.0 to 1.9.3.7

magento saves this error in system.log

Warning: array_merge_recursive () waits for at least 1 parameter, 0 given
in
/home/example/domains/exemple.com/public_html/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
on line 336 2018-12-10T08: 05: 18 + 00: 00 ERR (3): Warning: array_unique ()
expects parameter 1 to be an array, null given in
/home/example/domains/exemple.com/public_html/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
at line 337

and that's the function in Productimg.php

    Public function filterImageInGallery ($ product, $ image)
{
if (! Mage :: helper (& # 39; configurablewatches & # 39;) -> isEnabled ()) {
return true;
}

if (! isset ($ this -> _ productImageFilters[$product->getId()])) {
$ mapping = call_user_func_array ("array_merge_recursive", $ product-> getChildAttributeLabelMapping ());
$ filters = array_unique ($ mapping['labels'])
$ filters = array_merge ($ filters, array_map (function ($ label) {
returns $ label. Mage_ConfigurableSwatches_Helper_Productimg :: SWATCH_LABEL_SUFFIX;
}, $ filters));
$ this -> _ productImageFilters[$product->getId()] = $ filters;
}

return! in_array (Mage_ConfigurableSwatches_Helper_Data :: normalizeKey ($ image-> getLabel ()),
$ this -> _ productImageFilters[$product->getId()])
}

How can I solve this problem?