MusiCity v1.1 J1.6 template possible bug

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Jul 03, 2011 12:22 am
Hi Gavick Team,

FYI, in gk.framework.php line 600, I get:

Code: Select all
Notice: Uninitialized string offset: 0



I removed [0] and PhP notice disappeared:

Code: Select all
if($excluded_categories[0] == '') $excluded_categories = array(0);


to

Code: Select all
if($excluded_categories == '') $excluded_categories = array(0);


please confirm if this is a bug or safe to remove.

Thank you!
User avatar
Junior Boarder

teitbite
Mon Jul 04, 2011 9:13 am
Hi

This is not a bug but PHP interpretation. In most cases na upgrade of the PHP was a sloution. Anyway Your way of handling it is not a good one. Please try with this code instead:

Code: Select all
if(!is_array($excluded_categories)) $excluded_categories = array( 0 => $excluded_categories );
User avatar
Moderator


cron