Skip to content

Commit

Permalink
Improved fox for #1131
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Brookbanks committed Aug 9, 2016
1 parent a957823 commit 57c7039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/sources/products.index.inc.php
Expand Up @@ -1208,7 +1208,8 @@ function option_matrix($unique_groups) {
if(!empty($result[0]['digital_path'])) {
if(preg_match("/^(http|https|ftp|ftps)/", $result[0]['digital_path'])) {
$url_headers = get_headers($result[0]['digital_path']);
if(!strstr($url_headers[0], '200')) {

if(substr($url_headers[0], 9, 3)>=400) {
$GLOBALS['main']->setACPWarning($GLOBALS['language']->filemanager['error_dl_3']." ".$result[0]['digital_path']);
}
} elseif(!file_exists($result[0]['digital_path'])) {
Expand Down

0 comments on commit 57c7039

Please sign in to comment.