If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: nonnie
Forum Index » Profile for nonnie » Messages posted by nonnie
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&amp;tpl_name=$GB_TPL[$key]&amp;session=$this->session&amp;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&amp;tpl_name=$b&amp;session=$this->session&amp;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.
 
Forum Index » Profile for nonnie » Messages posted by nonnie
Go to:   
Based on the open source JForum