Subversion Repositories cheapmusic

Rev

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

Rev 94 Rev 96
Line 234... Line 234...
234
    // If the response does not indicate 'Success,' log the error(s)
234
    // If the response does not indicate 'Success,' log the error(s)
235
    else {
235
    else {
236
        if (!empty($result->Errors)) {
236
        if (!empty($result->Errors)) {
237
            foreach ($result->Errors as $error) {
237
            foreach ($result->Errors as $error) {
238
                if ($error->ErrorID != "7186919") { // no product found, not an error
238
                if ($error->ErrorID != "7186919") { // no product found, not an error
239
                    error_log($url);
239
                    my_error_log($url);
240
                    error_log("$error->ErrorText ($error->ErrorId)");
240
                    my_error_log("$error->ErrorText ($error->ErrorId)");
241
                }
241
                }
242
            }
242
            }
243
        } else {
243
        } else {
244
            error_log($url);
244
            my_error_log($url);
245
            error_log("No result or error message.");
245
            my_error_log("No result or error message.");
246
        }
246
        }
247
    }
247
    }
248
 
248
 
249
    return $arr;
249
    return $arr;
250
}
250
}
Line 348... Line 348...
348
    }
348
    }
349
    // If the response does not indicate 'Success,' log the error(s)
349
    // If the response does not indicate 'Success,' log the error(s)
350
    else {
350
    else {
351
        foreach ($result->Errors as $error) {
351
        foreach ($result->Errors as $error) {
352
            if ($error->ErrorID != "7186919") { // no product found, not an error
352
            if ($error->ErrorID != "7186919") { // no product found, not an error
353
                error_log($url);
353
                my_error_log($url);
354
                error_log("$error->ErrorText ($error->ErrorId)");
354
                my_error_log("$error->ErrorText ($error->ErrorId)");
355
            }
355
            }
356
        }
356
        }
357
    }
357
    }
358
 
358
 
359
    return $arr;
359
    return $arr;