Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 787-792 (lines=6) @@
784
	
785
	$with_returning = false;
786
	
787
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
788
	{
789
		$with_returning = true;
790
		if ($returnmode == 2)
791
			$return_var = array();
792
	}
793
794
	// Inserting data as a single row can be done as a single array.
795
	if (!is_array($data[array_rand($data)]))

Sources/Subs-Db-postgresql.php 1 location

@@ 793-798 (lines=6) @@
790
	$returning = '';
791
	$with_returning = false;
792
	// lets build the returning string, mysql allow only in normal mode
793
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
794
	{
795
		// we only take the first key
796
		$returning = ' RETURNING '.$keys[0];
797
		$with_returning = true;
798
	}
799
800
	if (!empty($data))
801
	{