Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1321
 
1372
 
1372
 
mysqli.php
_> 55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2006 osCommerce
   8+  Copyright (c) 2007 osCommerce
99 
  1010   Released under the GNU General Public License
  1111 */
     
 !
138138     }
  139139 
  140140     function nextID() {
<> 141 -      if ($id = @mysqli_insert_id($this->link)) {
   141+      if ( is_numeric($this->nextID) ) {
   142+        $id = $this->nextID;
   143+        $this->nextID = null;
   144+
142145         return $id;
<>  146+      } elseif ($id = @mysqli_insert_id($this->link)) {
   147+        return $id;
143148       } else {
  144149         $this->setError(mysqli_error($this->link), mysqli_errno($this->link));
  145150 
     
 !
156161     }
  157162 
  158163     function startTransaction() {
<>  164+      $this->logging_transaction = true;
   165+
159166       if ($this->use_transactions === true) {
  160167         return @mysqli_autocommit($this->link, false);
  161168       }
     
 !
164171     }
  165172 
  166173     function commitTransaction() {
<>  174+      if ($this->logging_transaction === true) {
   175+        $this->logging_transaction = false;
   176+        $this->logging_transaction_action = false;
   177+      }
   178+
167179       if ($this->use_transactions === true) {
  168180         $result = @mysqli_commit($this->link);
  169181 
     
 !
176188     }
  177189 
  178190     function rollbackTransaction() {
<>  191+      if ($this->logging_transaction === true) {
   192+        $this->logging_transaction = false;
   193+        $this->logging_transaction_action = false;
   194+      }
   195+
<_ 179196       if ($this->use_transactions === true) {
  180197         $result = @mysqli_rollback($this->link);
  181198