print_result 함수에서 오류가 있을 때만 exit 되도록 수정

This commit is contained in:
chicpro
2014-01-17 11:20:52 +09:00
parent 4c44421169
commit 244b33600f

View File

@ -10,6 +10,7 @@ if($_POST['js'] == "on") {
function print_result($error, $count) function print_result($error, $count)
{ {
echo '{ "error": "' . $error . '", "count": "' . $count . '" }'; echo '{ "error": "' . $error . '", "count": "' . $count . '" }';
if($error)
exit; exit;
} }