Subversion Repositories cheapmusic

Rev

Rev 66 | Rev 80 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 66 Rev 73
Line 47... Line 47...
47
            return [];
47
            return [];
48
        }
48
        }
49
 
49
 
50
        // If the response was loaded, parse it and store in array
50
        // If the response was loaded, parse it and store in array
51
        foreach ($result->items as $item) {
51
        foreach ($result->items as $item) {
52
            if (!empty($subCategories) && !in_array($item->categoryNode, $subCategories)) {
52
            if (!empty($subCategories) && !empty($item->categoryNode) && !in_array($item->categoryNode, $subCategories)) {
53
                continue;
53
                continue;
54
            }
54
            }
55
            $merchantName = "Walmart";
55
            $merchantName = "Walmart";
56
            if (isset($item->marketplace) && $item->marketplace) {
56
            if (isset($item->marketplace) && $item->marketplace) {
57
                $merchantName .= " Marketplace";
57
                $merchantName .= " Marketplace";