Page 1 of 1

Warning: Cannot use a scalar value as an array [fixed]

Posted: Wed Feb 21, 2007 2:23 am
by psychotomus
whats this error mean?
Warning: Cannot use a scalar value as an array in /mounted-storage/home40b/sub002/sc18478-RGIJ/simsportal.net/myaccount/settings.php

shows this error on everyone of these lines.

Code: Select all

//set settings
		$settings[] = $settings->popup_on_new_msg;
		$settings[] = $setting->email_on_new_msg;
		$settings[] = $setting->popup_on_lost_highscore;
		$settings[] = $settings->email_on_lost_highscore;
		$settings[] = $settings->popup_friend_invite;
		$settings[] = $settings->email_friend_invite;
		$settings[] = $settings->play_profile_music;

Posted: Wed Feb 21, 2007 8:29 am
by feyd
$settings is scalar. i.e. it's not an array. It's either an integer, float, string or boolean.