diff options
Diffstat (limited to 'plugins/UserFlag/User_flag_profile.php')
-rw-r--r-- | plugins/UserFlag/User_flag_profile.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/UserFlag/User_flag_profile.php b/plugins/UserFlag/User_flag_profile.php index 99dce7529..895da5323 100644 --- a/plugins/UserFlag/User_flag_profile.php +++ b/plugins/UserFlag/User_flag_profile.php @@ -57,4 +57,12 @@ class User_flag_profile extends Memcached_DataObject { return Memcached_DataObject::pkeyGet('User_flag_profile', $kv); } + + static function exists($profile_id, $user_id, $flag) + { + $ufp = User_flag_profile::pkeyGet(array('profile_id' => $profile_id, + 'user_id' => $user_id)); + + return !empty($ufp); + } } |