Displaying image gallery in the profile

Status: 
Open
Question: 

<?php global $user;
$idn1=$user->uid; //my userid
$id2= arg(1); //my contentprofileid
$mynode= content_profile_load(profile, $idn1);
$id1= $mynode->nid;
//check if the user is looking at his own gallery:
if($id1==$id2){
//If so: display add link
echo ’Add your pictures here!’;
}
else
//if not:
{
echo "This user has no picture gallery uploaded.";
}
?>

after putting this code in empty text I got result as a

This user has no picture gallery uploaded...
but it should shown as
Add your pictures here!

wht's the wrong on that

Responses