diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-08 20:14:17 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-08 20:14:17 -0700 |
commit | ffb1997902facb36b78a7cfa522f41f2b3d71cda (patch) | |
tree | e9fe47acf26c5fd2c742677f2610b60d3008eb26 /mod/notifications.php | |
parent | b49858b038a0a05bbe7685929e88071d0e125538 (diff) | |
download | volse-hubzilla-ffb1997902facb36b78a7cfa522f41f2b3d71cda.tar.gz volse-hubzilla-ffb1997902facb36b78a7cfa522f41f2b3d71cda.tar.bz2 volse-hubzilla-ffb1997902facb36b78a7cfa522f41f2b3d71cda.zip |
mistpark 2.0 infrasturcture lands
Diffstat (limited to 'mod/notifications.php')
-rw-r--r-- | mod/notifications.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/notifications.php b/mod/notifications.php index b5b97cc94..6422b3b00 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -17,7 +17,7 @@ function notifications_post(&$a) { WHERE `request-id` = %d AND `uid` = %d LIMIT 1", intval($request_id), - intval($_SESSION['uid']) + intval(get_uid()) ); if(count($r)) { @@ -28,10 +28,13 @@ function notifications_post(&$a) { return; } if($_POST['submit'] == t('Discard')) { - $r = q("DELETE FROM `intro` WHERE `id` = %d LIMIT 1", intval($intro_id)); - $r = q("DELETE `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q("DELETE FROM `intro` WHERE `id` = %d LIMIT 1", + intval($intro_id) + ); + $r = q("DELETE FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($request_id), - intval($_SESSION['uid'])); + intval(get_uid()) + ); return; } if($_POST['submit'] == t('Ignore')) { |