astehlik/typo3-extension-formhandler_subscription — pull request #2 by dogawaf (2012-09-28 11:01:45+00:00)
Title: Unnecessary/buggy call to sql_free_result

This call to `$GLOBALS['TYPO3_DB']->sql_free_result($res);` throw php warning because `$res` is a boolean, not a valid sql resource.
In my development configuration, I turn all php warnings into exception, and this cause the user to be redirect to the *Invalid authcode* page.

```
$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery($updateTable, $uidField . '=' . $uid, array($hiddenField => 0));
if (!$res) {
$this->utilityFuncs->throwException('validateauthcode_update_failed');
}

$GLOBALS['TYPO3_DB']->sql_free_result($res);
```

Plus, according to the php documentation (http://php.net/manual/en/function.mysql-free-result.php), there is no need to do a mysql_free_result after an UPDATE request.