View Single Post
  #74  
Old 03-24-2012, 08:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.5 released

Bug in include/version.php

This line

Code:
$variants_in_use = func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[classes] WHERE avail='Y' AND is_modifier=''");

will throw sql error if product options module is off - xcart_classes table not defined in $sql_tbl array. To fix replace this

Code:
$variants_in_use = func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[classes] WHERE avail='Y' AND is_modifier=''"); if ($variants_in_use) echo "<br />Variants (in use)";

with

Code:
if (!empty($active_modules['Product_Options'])) { $variants_in_use = func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[classes] WHERE avail='Y' AND is_modifier=''"); if ($variants_in_use) echo "<br />Variants (in use)"; }
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote