- $r = dba::select('contact', array('id'),
- array('pending' => false, 'uid' => local_user(), 'nurl' => $profile_url), array('limit' => 1));
- if (dbm::is_result($r))
+ if (dba::exists('contact', array('pending' => false, 'uid' => local_user(), 'nurl' => $profile_url))) {