Subversion Repositories cheapmusic

Rev

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

Rev 66 Rev 73
Line 217... Line 217...
217
            );
217
            );
218
        }
218
        }
219
    }
219
    }
220
    // If the response does not indicate 'Success,' log the error(s)
220
    // If the response does not indicate 'Success,' log the error(s)
221
    else {
221
    else {
-
 
222
        if (!empty($result->Errors)) {
222
        foreach ($result->Errors as $error) {
223
            foreach ($result->Errors as $error) {
223
            if ($error->ErrorID != "7186919") { // no product found, not an error
224
                if ($error->ErrorID != "7186919") { // no product found, not an error
224
                error_log($url);
225
                    error_log($url);
225
                error_log("$error->ErrorText ($error->ErrorId)");
226
                    error_log("$error->ErrorText ($error->ErrorId)");
-
 
227
                }
226
            }
228
            }
-
 
229
        } else {
-
 
230
            error_log($url);
-
 
231
            error_log("No result or error message.");
227
        }
232
        }
228
    }
233
    }
229
 
234
 
230
    return $arr;
235
    return $arr;
231
}
236
}