ID!=”)
{
$getparent=$wpdb->get_results($wpdb->prepare(“select parent_id from wp_users where ID=”.$current_user->ID.””), ARRAY_A);
//print_r($getparent);
//echo ‘
parent=’.$getparent[0][‘parent_id’];
}
$uid=(int) $_GET[‘user_id’];
if (!(($current_user->ID==”)||(($current_user->ID!=1)&&($getparent[0][‘parent_id’]!=0))))
{
if ($uid!=”)
{
$getuser=get_userdata($uid);
?>