-
- if (empty($url) && !preg_match("/^http(.*)$/", $href, $matches)) {
- // import from file , must use absolutely url
- $this->jerr('Please use the absolutely url for link href!');
- }
- if (!empty($url)) {
- // import from URL
+ if(!preg_match("/^http(.*)$/", $href, $matches)){
+ if(empty($url)){
+ $this->jerr('Please use the absolutely url for link href!');
+ }