Forums

Error Checking for Profile Pic Options existence. Critical. (1 post)

  1. technosailor
    Member
    Posted 6 months ago #

    Error checking, please. If an user profile is updated without profile pic options, then it should not break the admin. Please modify lines 420-427 to be:

    if( $_POST['profilepic_displayoptions'] ) :
    		$raw_data = $_POST['profilepic_displayoptions'];
    		$reversed_data = array();
    		foreach ($raw_data as $key => $val) {
    			$reversed_data[$val] = $key;
    		}
    
    		profilepic_internal_storeuserdisplaysettings($reversed_data, 'profilepic_displayoptions_'.$profile_id, $filename);
    	endif;

    Thanks. :)

    http://wordpress.org/extend/plugins/profile-pic/

Reply

You must log in to post.

About this Topic