formhandler_GenerateAuthCode_addTStable.patch
| Classes/Finisher/Tx_Formhandler_Finisher_GenerateAuthCode.php (Arbeitskopie) | ||
|---|---|---|
| 31 | 31 |
*/ |
| 32 | 32 |
public function process() {
|
| 33 | 33 |
$firstInsertInfo = array(); |
| 34 |
if(is_array($this->gp)) {
|
|
| 35 |
$firstInsertInfo = array_shift($this->gp['saveDB']); |
|
| 34 |
if(is_array($this->gp['saveDB'])) {
|
|
| 35 |
if(isset($this->settings['table'])) {
|
|
| 36 |
foreach($this->gp['saveDB'] as $insertInfo) {
|
|
| 37 |
if($insertInfo['table'] == $this->settings['table']) {
|
|
| 38 |
$firstInsertInfo = $insertInfo; |
|
| 39 |
break; |
|
| 40 |
} |
|
| 41 |
} |
|
| 42 |
} |
|
| 43 |
if(empty($firstInsertInfo)) {
|
|
| 44 |
reset($this->gp['saveDB']); |
|
| 45 |
$firstInsertInfo = current($this->gp['saveDB']); |
|
| 46 |
} |
|
| 36 | 47 |
} |
| 37 | 48 |
$table = $firstInsertInfo['table']; |
| 38 | 49 |
$uid = $firstInsertInfo['uid']; |