Merge pull request !82 from 明明海海+/master

This commit is contained in:
明明海海+ 2017-06-03 19:47:14 +08:00 committed by Discuz!
commit 322a5ee396
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ function build_cache_relatedlink() {
$data = array();
$query = C::t('common_relatedlink')->range();
foreach($query as $link) {
if(substr($link['url'], 0, 7) != 'http://') {
if(!(strpos($link['url'], '://'))) {
$link['url'] = 'http://'.$link['url'];
}
$data[] = $link;