구글 짧은 주소를 생성하지 못했을 때 대응코드 추가

This commit is contained in:
chicpro
2014-09-05 15:07:05 +09:00
parent 5cb4415032
commit e923fb045e

View File

@ -3,6 +3,8 @@ include_once("./_common.php");
$title = urlencode(str_replace('\"', '"',$_REQUEST['title']));
$short_url = googl_short_url($_REQUEST['longurl']);
if(!$short_url)
$short_url = urlencode($_REQUEST['longurl']);
$title_url = $title.' : '.$short_url;
switch($_REQUEST['sns']) {