[BUGFIX] Support for non-captchared recommendations 57/25657/2
authorNicole Cordes <cordes@cps-it.de>
Sat, 23 Nov 2013 02:59:26 +0000 (03:59 +0100)
committerNicole Cordes <typo3@cordes.co>
Sat, 23 Nov 2013 03:00:12 +0000 (04:00 +0100)
Change-Id: I351499f992ab520007a433ed015c2ddc55a6ad2b
Reviewed-on: https://review.typo3.org/25657
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
pi1/class.tx_tipafriendplus_pi1.php

index 40964ed..fc1b244 100644 (file)
@@ -327,11 +327,10 @@ class tx_tipafriendplus_pi1 extends tslib_pibase {
                if (
                        $url &&
                        $ret &&
-                       is_object($this->freeCap) &&
                        trim($tipData['name']) &&
                        $tipData['email'] &&
                        $tipData['recipient'] &&
-                       ($this->freeCap->checkWord($tipData['captcha_response']))
+                       (!is_object($this->freeCap) || $this->freeCap->checkWord($tipData['captcha_response']))
 
                ) {
                        return TRUE;