Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Undefined Index on line 381 in ManageMembers.php

Aloittaja tinoest, heinäkuu 03, 2011, 06:02:28 AP

« edellinen - seuraava »

tinoest

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.

Advertisement: