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!
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!