CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

formhandler_GenerateAuthCode_addTStable.patch

Caspar Stuebs, 2009-11-23 18:25

Download (972 Bytes)

 
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'];