Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
|
While troubleshooting the installation of this software, we ran across a similar loop. The ./admin/panel_template.php file also relied on
the faulty reset() function. It required the following fix:
line 42:
for (reset($GB_TPL);$key=key($GB_TPL); next($GB_TPL)) {
echo " <tr>
<td width=\"15\">-</td>
<td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"$this->SELF?action=template&tpl_name=$GB_TPL[$key]&session=$this->session&uid=$this->uid\"><font color=\"#000066\">
$GB_TPL[$key]</font></a></font></td>
</tr>\n";
}
changed to:
reset($GB_TPL);
foreach ($GB_TPL as $a => $b) {
echo "<tr>
<td width=\"15\">-</td>
<td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"$this->SELF?action=template&tpl_name=$b&session=$this->session&uid=$this->uid\"><font color=\"#000066\">
$b</font></a></font></td>
</tr>\n";
}//end foreach
Just thought we should post this to save others the trouble when/if it pops up.
Cheers.
|
|
|
|
|
|
Based on the open source JForum
|