--- loncom/interface/domainprefs.pm 2012/12/18 15:20:50 1.178 +++ loncom/interface/domainprefs.pm 2012/12/20 02:43:28 1.179 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.178 2012/12/18 15:20:50 raeburn Exp $ +# $Id: domainprefs.pm,v 1.179 2012/12/20 02:43:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -7090,10 +7090,12 @@ sub process_captcha { if (ref($current->{'recaptchakeys'}) eq 'HASH') { $currpub = $current->{'recaptchakeys'}{'public'}; $currpriv = $current->{'recaptchakeys'}{'private'}; - $newsettings->{'recaptchakeys'} = { - public => '', - private => '', - } + unless ($newsettings->{'captcha'} eq 'recaptcha') { + $newsettings->{'recaptchakeys'} = { + public => '', + private => '', + } + } } if (($newpub ne $currpub) || ($newpriv ne $currpriv)) { if ($container eq 'cancreate') {