Subversion Repositories oidplus

Rev

Rev 1149 | Rev 1181 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1149 Rev 1162
Line 86... Line 86...
86
                if ($res === false) {
86
                if ($res === false) {
87
                        throw new OIDplusException(_L('Communication with %1 server failed', 'hCaptcha'));
87
                        throw new OIDplusException(_L('Communication with %1 server failed', 'hCaptcha'));
88
                }
88
                }
89
 
89
 
90
                $captcha_success=@json_decode($res);
90
                $captcha_success=@json_decode($res);
91
                if (!$captcha_success || ($captcha_success->success==false)) {
91
                if (!$captcha_success || !$captcha_success->success) {
92
                        throw new OIDplusException(_L('CAPTCHA not successfully verified').' ('.implode(", ",$captcha_success->{'error-codes'}).')');
92
                        throw new OIDplusException(_L('CAPTCHA not successfully verified').' ('.implode(", ",$captcha_success->{'error-codes'}).')');
93
                }
93
                }
94
        }
94
        }
95
 
95
 
96
        /**
96
        /**