New dba functions
This commit is contained in:
parent
7b6664f0f7
commit
d810b21f87
12 changed files with 157 additions and 167 deletions
|
|
@ -245,9 +245,8 @@ function profile_sidebar($profile, $block = 0) {
|
|||
$profile_url = normalise_link(App::get_baseurl()."/profile/".$profile["nickname"]);
|
||||
}
|
||||
|
||||
$r = q("SELECT * FROM `contact` WHERE NOT `pending` AND `uid` = %d AND `nurl` = '%s'",
|
||||
local_user(), $profile_url);
|
||||
|
||||
$r = dba::select('contact', array('id'),
|
||||
array('pending' => false, 'uid' => local_user(), 'nurl' => $profile_url), array('limit' => 1));
|
||||
if (dbm::is_result($r))
|
||||
$connect = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue