Deutsches Support Forum

icon
Avatar
rdsmiranda
Beiträge: 4
If we unchek all valures for Show object´s shortinformation? option, the values saved in configuration.php for $me_shortinfo is "1,0,0,0,0". This is because when all values are uncheked the POST sends nothing.

I suggest this change before saving (file admin.misterstate.php):

iconphp:
 
if (is_array($object['me_shortinfo'])) {
	$shortinfo = "";
	for($x=0; $x < 5; $x++)
	{
		if($x == current($object['me_shortinfo']))
		{
			$shortinfo .=  "1,";
			next($object['me_shortinfo']);
		}
		else $shortinfo .= "0,";
	}
 
	$shortinfo = substr($shortinfo, -10, 9);
} else {
	$shortinfo = "0,0,0,0,0";
}
 
08.09.2009 15:53
Avatar
admin
Moderator
Beiträge: 885
Hi,

thanks for the hint. I´ve added this to my bugtracker and gonna fix it with the next update.

best regards
08.09.2009 19:32
icon