Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1290
 
1293
 
1293
 
database.php
_> 11 <?php
  22 /*
<> 3 -  $Id: database.php 1290 2007-03-01 19:36:08Z hpdl $
   3+  $Id: database.php 1293 2007-03-02 00:07:08Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
296296         $batch_select_field,
  297297         $logging = false,
  298298         $logging_module,
<> 299 -        $logging_module_id = false,
   299+        $logging_module_id,
300300         $logging_fields = array(),
  301301         $logging_changed = array();
  302302 
     
 !
535535 
  536536           if ($this->affectedRows($this->query_handler) > 0) {
  537537             if (!empty($this->logging_changed)) {
<> 538 -              if ( ($this->logging_action == 'insert') && ($this->logging_module_id === false) ) {
   538+              if ( ($this->logging_action == 'insert') && !is_numeric($this->logging_module_id) ) {
539539                 $this->logging_module_id = $this->db_class->nextID();
  540540                 $this->setNextID($this->logging_module_id);
  541541               }
     
 !
580580       $this->cache_expire = $expire;
  581581     }
  582582 
<> 583 -    function setLogging($module, $id = false) {
   583+    function setLogging($module, $id = null) {
<_ 584584       $this->logging = true;
  585585       $this->logging_module = $module;
  586586       $this->logging_module_id = $id;