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

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

View File

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