diff --git a/app/common.php b/app/common.php index ea9d3f72e..2227d56a8 100755 --- a/app/common.php +++ b/app/common.php @@ -317,7 +317,7 @@ function GetHttpCode($url, $timeout = 5) */ function IsUrl($value) { - return in_array(substr($value, 0, 6), ['http:/', 'https:']); + return empty($value) ? false : in_array(substr($value, 0, 6), ['http:/', 'https:']); } /**