| @@ -60,7 +60,7 @@ | ||
| 60 | 60 | $this->content['urls']['logoutUrl'] = $this->logoutUrl; | 
| 61 | 61 | |
| 62 | 62 | if($this->user === false || $this->user === null) | 
| 63 | -        { | |
| 63 | +	{ | |
| 64 | 64 | if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false) | 
| 65 | 65 |              { | 
| 66 | 66 |                  $this->addLink('Login', $this->loginUrl); | 
| @@ -108,6 +108,9 @@ discard block | ||
| 108 | 108 |          $this->wwwUrl = $this->settings->getGlobalSetting('www_url', 'https://www.burningflipside.com/'); | 
| 109 | 109 | } | 
| 110 | 110 | |
| 111 | + /** | |
| 112 | + * @param string $fieldName | |
| 113 | + */ | |
| 111 | 114 | protected function getCaptchField($fieldName) | 
| 112 | 115 |      { | 
| 113 | 116 |          $dataset = DataSetFactory::getDataSetByName('profiles'); | 
| @@ -130,6 +133,9 @@ discard block | ||
| 130 | 133 |          return $this->getCaptchField('hint'); | 
| 131 | 134 | } | 
| 132 | 135 | |
| 136 | + /** | |
| 137 | + * @return string | |
| 138 | + */ | |
| 133 | 139 | private function get_answer() | 
| 134 | 140 |      { | 
| 135 | 141 |          return $this->getCaptchField('answer'); |