Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin -> categories.php


blr044

Recommended Posts

Posted

I was going through admin/categories.php and came upon this one line and am not sure if it is a mistake.

 

Line 377 thru 389:

                       'products_price' => '',
                      'products_cost' => '',
                      'products_weight' => '',
                      'products_date_added' => '',
                      'products_last_modified' => '',
                      'products_date_available' => '',
                      'products_status' => '',
                      'products_tax_class_id' => '',
                      'manufacturers_id' => '');

   $pInfo = new objectInfo($parameters);

  if (isset ($HTTP_GET_VARS['pID']) && (!$HTTP_POST_VARS) ) {

 

You will notice in the last line, there is an ! before $HTTP_POST_VARS

 

So I remove that or leave it there?

Posted

This has been changed in osCommerce 2.2 RC 2a. The "!" is a PHP NOT operator, and it has similarities to the PHP empty() function. So what it's checking for is if there are no POST variables.

 

For more information about what is considered FALSE when converting another variable to boolean, see the "Converting to boolean" section at this link: http://www.php.net/manual/en/language.types.boolean.php.

Check out Chad's News.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...