PDA

View Full Version : Scalar Value in PHPnuke


alakon
04-04-2003, 09:42 PM
Added it to the middle of a PHP nuke script. I get the error message (otherwise it looks fine, minus the days of the week):

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 86

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 87

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 88

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 89

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 90

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 91

Warning: Cannot use a scalar value as an array in /home/paradox/public_html/modules/escalendar.php on line 92

To make it easier on you all, I have found line 86 to 92 from the code:

// DAY NAMES
// Edit the calendar day name column headers below
$day[0]="S";
$day[1]="M";
$day[2]="T";
$day[3]="W";
$day[4]="T";
$day[5]="F";
$day[6]="S";

How do I fix this??

It looks fine when I call up the escalendar.php file alone.

I have it in the script as an include.

Thank you for your help!

Brian
04-05-2003, 08:56 AM
I'm not familiar with PHPnuke, but the first thing I would try is to change $day[x] to $dayname[x] in each place it is mentioned in the calendar script.

Let us know how it turns out.