diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:33:02 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:33:02 -0700 |
commit | f5826105bfc514599b2c5b6692bca14ca4bc5d78 (patch) | |
tree | 7255ddd102b2141ad581f636be37bc60a94e669c /mod | |
parent | 766b31707037a82ffd9140bfe599c27f4ef01495 (diff) | |
download | volse-hubzilla-f5826105bfc514599b2c5b6692bca14ca4bc5d78.tar.gz volse-hubzilla-f5826105bfc514599b2c5b6692bca14ca4bc5d78.tar.bz2 volse-hubzilla-f5826105bfc514599b2c5b6692bca14ca4bc5d78.zip |
group work, dfrn_poll
Diffstat (limited to 'mod')
-rw-r--r-- | mod/contacts.php | 2 | ||||
-rw-r--r-- | mod/dfrn_poll.php | 2 | ||||
-rw-r--r-- | mod/notifications.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index b14377cea..5435df7b2 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -52,7 +52,7 @@ function contacts_post(&$a) { } } if($intval($contact_id)) - q("DELETE * FROM `item` WHERE `contact-id` = %d ", + q("DELETE FROM `item` WHERE `contact-id` = %d LIMIT 1", intval($contact_id) ); diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index e7f4b0786..da60eb629 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -46,7 +46,7 @@ function dfrn_poll_init(&$a) { if((x($type)) && ($type == 'profile-check')) { - q("DELETE FROM `expire` WHERE `expire` < " . time()); + q("DELETE FROM `profile_check` WHERE `expire` < " . intval(time())); $r = q("SELECT * FROM `profile_check` WHERE `dfrn_id` = '%s' ORDER BY `expire` DESC", dbesc($dfrn_id)); if(count($r)) diff --git a/mod/notifications.php b/mod/notifications.php index 1064729ff..6ade0c0bb 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -28,7 +28,7 @@ function notifications_post(&$a) { return; } if($_POST['submit'] == 'Discard') { - $r = q("DELETE `intro` WHERE `id` = %d LIMIT 1", intval($intro_id)); + $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", intval($request_id), intval($_SESSION['uid'])); |