: brian [mailto:bally.z...@gmail.com]
Sent: June-30-09 6:56 AM
To: cake-php@googlegroups.com
Subject: Re: return true or false
like so?
if ($this->Profile->checkPublic ($profile_user_id)) {
// true
}
else
{
// false
}
On Mon, Jun 29, 2009 at 4:54 PM, Dave Maharaj ::
WidePixels.com
like so?
if ($this->Profile->checkPublic ($profile_user_id))
{
// true
}
else
{
// false
}
On Mon, Jun 29, 2009 at 4:54 PM, Dave Maharaj ::
WidePixels.com wrote:
> I have a function that checks if a users profile is public or private
>
> function checkPublicAccess ($profile_user_id)
> {
I have a function that checks if a users profile is public or private
function checkPublicAccess ($profile_user_id)
{
// check if profile is public or private
//0 = private 1 = public
$params = array(
'conditions' => array('Profile.user_id' => $profile_user_id,
'Profil