diff options
author | Andrew Dolgov <[email protected]> | 2011-05-04 14:56:49 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-05-04 14:56:49 +0400 |
commit | bfedfe697bb8893473795ec832fb60fec1ed651f (patch) | |
tree | ef546b9056569734889073c67d67f8a7eb2f309d | |
parent | decf742ebddec017ffa22e3dd8647790969c7d7c (diff) |
backend/la: properly handle situation when article has multiple ref_ids on one account (closes #342)
-rw-r--r-- | backend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.php b/backend.php index 58f921e6a..6b93d1b3c 100644 --- a/backend.php +++ b/backend.php @@ -181,7 +181,8 @@ $id = db_escape_string($_REQUEST['id']); $result = db_query($link, "SELECT link FROM ttrss_entries, ttrss_user_entries - WHERE id = '$id' AND id = ref_id AND owner_uid = '".$_SESSION['uid']."'"); + WHERE id = '$id' AND id = ref_id AND owner_uid = '".$_SESSION['uid']."' + LIMIT 1"); if (db_num_rows($result) == 1) { $article_url = db_fetch_result($result, 0, 'link'); |