Saving tribes as array
This commit is contained in:
		@@ -17,7 +17,7 @@ class CreateEvent {
 | 
			
		||||
        $post_data['amount_default'] = str_replace(',', '.', $_POST['amount_default']);
 | 
			
		||||
        $post_data['amount_social'] = str_replace(',', '.', $_POST['amount_social']);
 | 
			
		||||
 | 
			
		||||
        $post_data['contributing_tribes'] = str_replace( PHP_EOL, ',', $post_data['contributing_tribes'] );
 | 
			
		||||
        $post_data['contributing_tribes'] = serialize( explode(PHP_EOL, $post_data['contributing_tribes'] ) );
 | 
			
		||||
 | 
			
		||||
		$new_event_id = $dbHandler->insertRows(
 | 
			
		||||
			'kompass_veranstaltungen_index',
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ class UpdateEvent {
 | 
			
		||||
        $post_data['amount_default'] = str_replace(',', '.', $_POST['amount_default']);
 | 
			
		||||
        $post_data['amount_social'] = str_replace(',', '.', $_POST['amount_social']);
 | 
			
		||||
 | 
			
		||||
        $post_data['contributing_tribes'] = str_replace( PHP_EOL, ',', $post_data['contributing_tribes'] );
 | 
			
		||||
        $post_data['contributing_tribes'] = serialize( explode(PHP_EOL, $post_data['contributing_tribes'] ) );
 | 
			
		||||
 | 
			
		||||
		$dbHandler->updateRows(
 | 
			
		||||
			'kompass_veranstaltungen_index',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user