Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1860
 
1862
 
1862
 
database.php
_> 11 <?php
  22 /*
<> 3 -  $Id: database.php 1860 2009-03-06 23:25:01Z hpdl $
   3+  $Id: database.php 1862 2009-03-06 23:34:07Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
300300         $logging_module,
  301301         $logging_module_id,
  302302         $logging_fields = array(),
<> 303 -        $logging_changed = array();
   303+        $logging_changed = array(),
   304+        $_db_tables = array();
304305 
  305306     function __construct(&$db_class) {
  306307       $this->db_class =& $db_class;
     
 !
414415       $this->bindValueMixed($place_holder, $value, 'raw');
  415416     }
  416417 
<> 417 -    function bindTable($place_holder, $value) {
   418+    function bindTable($place_holder, $value = null) {
   419+      if ( empty($value) ) { // remove :table_ from $place_holder and prefix it with the database name prefix value
   420+        if ( !isset($this->_db_tables[$place_holder]) ) {
   421+          $this->_db_tables[$place_holder] = DB_TABLE_PREFIX . substr($place_holder, 7);
   422+        }
   423+
   424+        $value = $this->_db_tables[$place_holder];
   425+      }
   426+
<_ 418427       $this->bindValueMixed($place_holder, $value, 'raw', false);
  419428     }
  420429