Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

183
 
184
 
184
 
address_book.php
_> 1717 
  1818       $Qaddresses = $osC_Database->query('select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from :table_address_book where customers_id = :customers_id order by firstname, lastname');
  1919       $Qaddresses->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
<> 20 -      $Qaddresses->bindInt(':customers_id', $osC_Customer->id);
   20+      $Qaddresses->bindInt(':customers_id', $osC_Customer->getID());
2121       $Qaddresses->execute();
  2222 
  2323       return $Qaddresses;
     
 !
2929       $Qentry = $osC_Database->query('select entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_zone_id, entry_country_id, entry_telephone, entry_fax from :table_address_book where address_book_id = :address_book_id and customers_id = :customers_id');
  3030       $Qentry->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
  3131       $Qentry->bindInt(':address_book_id', $id);
<> 32 -      $Qentry->bindInt(':customers_id', $osC_Customer->id);
   32+      $Qentry->bindInt(':customers_id', $osC_Customer->getID());
3333       $Qentry->execute();
  3434 
  3535       return $Qentry;
     
 !
4141       $Qentry = $osC_Database->query('select address_book_id from :table_address_book where address_book_id = :address_book_id and customers_id = :customers_id');
  4242       $Qentry->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
  4343       $Qentry->bindInt(':address_book_id', $id);
<> 44 -      $Qentry->bindInt(':customers_id', $osC_Customer->id);
   44+      $Qentry->bindInt(':customers_id', $osC_Customer->getID());
4545       $Qentry->execute();
  4646 
  4747       if ($Qentry->numberOfRows() === 1) {
     
 !
5858       if (is_numeric($total_entries) === false) {
  5959         $Qaddresses = $osC_Database->query('select count(*) as total from :table_address_book where customers_id = :customers_id');
  6060         $Qaddresses->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
<> 61 -        $Qaddresses->bindInt(':customers_id', $osC_Customer->id);
   61+        $Qaddresses->bindInt(':customers_id', $osC_Customer->getID());
6262         $Qaddresses->execute();
  6363 
  6464         $total_entries = $Qaddresses->valueInt('total');
     
 !
7777       if (is_numeric($id)) {
  7878         $Qab = $osC_Database->query('update :table_address_book set customers_id = :customers_id, entry_gender = :entry_gender, entry_company = :entry_company, entry_firstname = :entry_firstname, entry_lastname = :entry_lastname, entry_street_address = :entry_street_address, entry_suburb = :entry_suburb, entry_postcode = :entry_postcode, entry_city = :entry_city, entry_state = :entry_state, entry_country_id = :entry_country_id, entry_zone_id = :entry_zone_id, entry_telephone = :entry_telephone, entry_fax = :entry_fax where address_book_id = :address_book_id and customers_id = :customers_id');
  7979         $Qab->bindInt(':address_book_id', $id);
<> 80 -        $Qab->bindInt(':customers_id', $osC_Customer->id);
   80+        $Qab->bindInt(':customers_id', $osC_Customer->getID());
8181       } else {
  8282         $Qab = $osC_Database->query('insert into :table_address_book (customers_id, entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_country_id, entry_zone_id, entry_telephone, entry_fax) values (:customers_id, :entry_gender, :entry_company, :entry_firstname, :entry_lastname, :entry_street_address, :entry_suburb, :entry_postcode, :entry_city, :entry_state, :entry_country_id, :entry_zone_id, :entry_telephone, :entry_fax)');
  8383       }
  8484       $Qab->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
<> 85 -      $Qab->bindInt(':customers_id', $osC_Customer->id);
   85+      $Qab->bindInt(':customers_id', $osC_Customer->getID());
8686       $Qab->bindValue(':entry_gender', ((ACCOUNT_GENDER > -1) && isset($data['gender']) && (($data['gender'] == 'm') || ($data['gender'] == 'f'))) ? $data['gender'] : '');
  8787       $Qab->bindValue(':entry_company', (ACCOUNT_COMPANY > -1) ? $data['company'] : '');
  8888       $Qab->bindValue(':entry_firstname', $data['firstname']);
     
 !
132132         $Qupdate = $osC_Database->query('update :table_customers set customers_default_address_id = :customers_default_address_id where customers_id = :customers_id');
  133133         $Qupdate->bindTable(':table_customers', TABLE_CUSTOMERS);
  134134         $Qupdate->bindInt(':customers_default_address_id', $id);
<> 135 -        $Qupdate->bindInt(':customers_id', $osC_Customer->id);
   135+        $Qupdate->bindInt(':customers_id', $osC_Customer->getID());
136136         $Qupdate->execute();
  137137 
  138138         if ($Qupdate->affectedRows() === 1) {
     
 !
149149       $Qdelete = $osC_Database->query('delete from :table_address_book where address_book_id = :address_book_id and customers_id = :customers_id');
  150150       $Qdelete->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
  151151       $Qdelete->bindInt(':address_book_id', $id);
<> 152 -      $Qdelete->bindInt(':customers_id', $osC_Customer->id);
   152+      $Qdelete->bindInt(':customers_id', $osC_Customer->getID());
<_ 153153       $Qdelete->execute();
  154154 
  155155       if ($Qdelete->affectedRows() === 1) {