Появляется вот такая ошибка:
PLG_JEXTCURRENCY_ERROR_DATA
Warning: Invalid argument supplied for foreach() in
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\modules\mod_jextcurrency\tmpl\kgcm.php on line 13
Вот код файла KGCM.PHP:
<?php
// no direct access
Error_Reporting(E_ALL & ~E_NOTICE);
defined('_JEXEC') or die('Restricted access');
?>
<div class="jextcurrency" style="width:<?php echo trim($params->get('width', '100%'));?>;">
<?php if (isset($currency->error)): ?>
<div class="error"><?php echo JText::_($currency->error); ?></div>
<?php endif; ?>
<div class="rates">
<?php foreach ($currency->data->today as $key => $value):?>
<div class="item">
<div class="item1">
<?php if ($params->get ('enable_flag', 1)): ?>
<img title="<?php echo $key; ?>" alt="<?php echo $key; ?>" src = "<?php echo JURI::base()?>modules/mod_jextcurrency/assets/img/flags/<?php echo $key; ?>.gif " />
<?php endif; ?>
<?php echo (($params->get('enable_scale', 0)) ? '<div class="scale">'.$value['scale'].'</div>' : '')
. ' ' . (($params->get('cur_name', 'iso') == 'text') ? $value['name'] : $key); ?>
</div>
<div class="item2"><?php echo number_format($value['rate'], $params->get('precision', 3), ',', '');?>
<span class="<?php echo ($value['change'] >= 0) ? 'positive' : 'negative'; ?>" title="<?php echo JText::_("MOD_JEXTCURRENCY_PREVIOUS") . number_format(($value['rate'] - $value['change']), $params->get('precision', 3), ',', ''); ?>">
<?php echo number_format($value['change'], $params->get('precision_diff', 3), ',', '');?>
</span>
</div>
<div style="clear:both;"></div>
</div>
<?php endforeach; ?>
</div>
<div style="clear:both;"></div>
</div>