jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: Francesco Rotondo on 12.12.2016 17:21:12

Title: Error in jdcategoryselect.php
Post by: Francesco Rotondo on 12.12.2016 17:21:12
Hi.

At line 102 of this file there is this code:           if ($options[$i]->level == 0) {
                if ($jd_config['show.header.catlist.uncategorised'] == 1){
                    $options[$i]->text = JText::_('COM_JDOWNLOADS_SELECT_UNCATEGORISED');
                } else {
                   $root = array_shift($options);
                   $i++;
                   $n--;
                }   
            }
            if ($options[$i]->level > 1){
                   $options[$i]->text = str_repeat('- ',($options[$i]->level -1)).$options[$i]->text;
            }
.
i had a error of 'undefinited error' at line 102. With this change, no error:            if ($options[$i]->level == 0) {
                if ($jd_config['show.header.catlist.uncategorised'] == 1){
                    $options[$i]->text = JText::_('COM_JDOWNLOADS_SELECT_UNCATEGORISED');
                } else {
                   $root = array_shift($options);
                   $i++;
                   $n--;
                }   
            }
if ($i < $n) {
                if ($options[$i]->level > 1){
                   $options[$i]->text = str_repeat('- ',($options[$i]->level -1)).$options[$i]->text;
                }
            }.
Of course, there can be another better solution at this error than mine.
Title: Re: Error in jdcategoryselect.php
Post by: ColinM on 13.12.2016 10:16:42
Hi
Thanks for pointing this out.
What Error Reporting level have you set in Joomla! Global Config - Server Settings?  We normally run at System Default.  If you use Development level you get very strict dfeinitions that are above thge usual php 'default' behavior.
Colin