Merge pull request #1073 from openclassify/dia

#3991 [customfields-module] Column value not working
This commit is contained in:
Ozcan Durak 2021-05-12 12:40:56 +03:00 committed by GitHub
commit 8a552d6b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,7 +292,7 @@ class AdvsController extends PublicController
->view($adv);
$features = array();
foreach ($listingCFs as $listingCF) {
if ($key = array_search($listingCF->slug, array_column($tempFeatures, 'slug'))) {
if (($key = array_search($listingCF->slug, array_column($tempFeatures, 'slug'))) !== false) {
$features[$listingCF->slug] = $tempFeatures[$key];
}
}