Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: tinoest - heinäkuu 03, 2011, 06:02:28 AP

Otsikko: Undefined Index on line 381 in ManageMembers.php
Kirjoitti: tinoest - heinäkuu 03, 2011, 06:02:28 AP
Hi,

Not sure if this is due to the database having bad data or if its a more general problem. It doesn't seem to effect anything on the front end and only seems to be cautionary step anyway. 

The original code is below:

// Default to '=', just in case...
                                if (empty($range_trans[$_POST['types'][$param_name]]))
                                        $_POST['types'][$param_name] = '=';


I changed it to the following to remove the undefined.

// Default to '=', just in case...
                              if (array_key_exists('types',$_POST) && empty($range_trans[$_POST['types'][$param_name]]))
                                        $_POST['types'][$param_name] = '=';


Just curious if anyone else is getting this in there forum error log.