  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: reviews.php 153 2005-08-04 12:57:59Z hpdl $ |
| |
| 3 | + | $Id: reviews.php 184 2005-09-07 14:48:20Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
29 | 29 | | $this->is_enabled = true; |
| |
30 | 30 | | break; |
| |
31 | 31 | | case 1: |
  |
32 | | - | if ($osC_Customer->isLoggedOn() == true) { |
| |
| 32 | + | if ($osC_Customer->isLoggedOn()) { |
|
33 | 33 | | $this->is_enabled = true; |
| |
34 | 34 | | } else { |
| |
35 | 35 | | $this->is_enabled = false; |
| |
|
|
 |
… |
|
55 | 55 | | $Qhaspurchased->bindRaw(':table_orders', TABLE_ORDERS); |
| |
56 | 56 | | $Qhaspurchased->bindRaw(':table_orders_products', TABLE_ORDERS_PRODUCTS); |
| |
57 | 57 | | $Qhaspurchased->bindRaw(':table_products', TABLE_PRODUCTS); |
  |
58 | | - | $Qhaspurchased->bindInt(':customers_id', $osC_Customer->id); |
| |
| 58 | + | $Qhaspurchased->bindInt(':customers_id', $osC_Customer->getID()); |
|
59 | 59 | | $Qhaspurchased->bindInt(':products_id', $_GET['products_id']); |
| |
60 | 60 | | $Qhaspurchased->execute(); |
| |
61 | 61 | | |
| |
|
|
 |
… |
|
74 | 74 | | $this->is_moderated = false; |
| |
75 | 75 | | break; |
| |
76 | 76 | | case 0: |
  |
77 | | - | if ($osC_Customer->isLoggedOn() === true) { |
| |
| 77 | + | if ($osC_Customer->isLoggedOn()) { |
  |
78 | 78 | | $this->is_moderated = false; |
| |
79 | 79 | | } else { |
| |
80 | 80 | | $this->is_moderated = true; |