+ // FIXME not sure if owner_uid is a good idea here, we may have a base entry without user entry (?)
+ $result = db_query( "SELECT plugin_data,title,content,link,tag_cache,author FROM ttrss_entries, ttrss_user_entries
+ WHERE ref_id = id AND (guid = '".db_escape_string( $entry_guid)."' OR guid = '$entry_guid_hashed') AND owner_uid = $owner_uid");
+
+ if (db_num_rows($result) != 0) {
+ $entry_plugin_data = db_fetch_result($result, 0, "plugin_data");
+ $stored_article = array("title" => db_fetch_result($result, 0, "title"),
+ "content" => db_fetch_result($result, 0, "content"),
+ "link" => db_fetch_result($result, 0, "link"),
+ "tags" => explode(",", db_fetch_result($result, 0, "tag_cache")),
+ "author" => db_fetch_result($result, 0, "author"));
+ } else {
+ $entry_plugin_data = "";
+ $stored_article = array();
+ }
+