Explorar el Código

Internal: the transaction mechanism was inoperant when a form was built within the target page.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1470 a333f486-631f-4898-b8df-5754b55c2be0
romainq hace 14 años
padre
commit
1eb661cc1e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      application/transaction.class.inc.php

+ 2 - 2
application/transaction.class.inc.php

@@ -38,11 +38,11 @@ class privUITransaction
 		// Strictly speaking, the two lines below should be grouped together
 		// by a critical section
 		// sem_acquire($rSemIdentified);
-		$id = 1 + count($_SESSION['transactions']);
+		$id = str_replace(array('.', ' '), '', microtime()); //1 + count($_SESSION['transactions']);
 		$_SESSION['transactions'][$id] = true;
 		// sem_release($rSemIdentified);
 		
-		return sprintf("%d", $id);
+		return (string)$id;
 	}
 
 	/**