eradicate redundant get_uid function

This commit is contained in:
Mike Macgirvin 2010-10-18 14:34:59 -07:00
parent 103814ab8e
commit ac824fe83e
18 changed files with 79 additions and 86 deletions

View file

@ -17,7 +17,7 @@ function notifications_post(&$a) {
WHERE `request-id` = %d
AND `uid` = %d LIMIT 1",
intval($request_id),
intval(get_uid())
intval(local_user())
);
if(count($r)) {
@ -33,7 +33,7 @@ function notifications_post(&$a) {
);
$r = q("DELETE FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($request_id),
intval(get_uid())
intval(local_user())
);
return;
}