Subversion Repositories cheapmusic

Rev

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

Rev 73 Rev 80
Line 72... Line 72...
72
            if (empty($url)) {
72
            if (empty($url)) {
73
                continue;
73
                continue;
74
            }
74
            }
75
 
75
 
76
            if ((string)$result->categoryId == $config["musicCategory"]) {
76
            if ((string)$result->categoryId == $config["musicCategory"]) {
77
                if (strpos((string)$item->categoryPath, "Vinyl Records") !== false) {
77
                if (!empty($item->categoryPath) && strpos((string)$item->categoryPath, "Vinyl Records") !== false) {
78
                    $mediaType = "Record";
78
                    $mediaType = "Record";
79
                }
79
                }
80
                else if (strpos((string)$item->categoryPath, "Cassette Tapes") !== false) {
80
                else if (!empty($item->categoryPath) && strpos((string)$item->categoryPath, "Cassette Tapes") !== false) {
81
                    continue;
81
                    continue;
82
                }
82
                }
83
                else { // mediaType "...on CD or Vinyl"
83
                else { // mediaType "...on CD or Vinyl"
84
                    if (strpos($title, "Vinyl") !== false) {
84
                    if (strpos($title, "Vinyl") !== false) {
85
                        $mediaType = "Record";
85
                        $mediaType = "Record";