Index: branches/5.2.x/units/currencies/currencies_tag_processor.php =================================================================== diff -u -N -r14258 -r14702 --- branches/5.2.x/units/currencies/currencies_tag_processor.php (.../currencies_tag_processor.php) (revision 14258) +++ branches/5.2.x/units/currencies/currencies_tag_processor.php (.../currencies_tag_processor.php) (revision 14702) @@ -1,6 +1,6 @@ Application->RemoveVar('saved_curr_ids'); } - if($unused_ids) - { + if ( $unused_ids ) { $this->Application->SetVar('unused_ids', $unused_ids); - $sql = 'SELECT ISO FROM '.$this->Application->getUnitOption($this->Prefix, 'TableName').' WHERE CurrencyId IN('.$unused_ids.') AND Status = 1'; - if($params['unused_iso'] = implode(', ', $this->Conn->GetCol($sql))) - { + $sql = 'SELECT ISO + FROM '.$this->Application->getUnitOption($this->Prefix, 'TableName').' + WHERE CurrencyId IN('.$unused_ids.') AND Status = 1'; + $params['unused_iso'] = implode(', ', $this->Conn->GetCol($sql)); + + if ( $params['unused_iso'] ) { $params['unused_ids'] = $unused_ids; $params['name'] = $params['block']; $ret = $this->Application->ParseBlock($params);