Handled situation where user enables captcha but forgets to supply keys

This commit is contained in:
Pliable Pixels 2015-08-31 20:39:43 -04:00
parent 22a7a1d53d
commit 2481c7a22e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ xhtmlHeaders(__FILE__, translate('Login') );
<input type="submit" value="<?php echo translate('Login') ?>"/>
<!-- PP: Added recaptcha widget if enabled -->
<?php
if (ZM_OPT_USE_GOOG_RECAPTCHA)
if (ZM_OPT_USE_GOOG_RECAPTCHA && ZM_OPT_GOOG_RECAPTCHA_SITEKEY && ZM_OPT_GOOGLE_RECAPTCHA_SECRETKEY)
{
echo "<br/><br/><center> <div class='g-recaptcha' data-sitekey='".ZM_OPT_GOOG_RECAPTCHA_SITEKEY."'></div> </center>";
}