diff --git a/classes/pref/instances.php b/classes/pref/instances.php
index c017ee9d2..0ce390805 100644
--- a/classes/pref/instances.php
+++ b/classes/pref/instances.php
@@ -1,6 +1,12 @@
"Connection failed",
+ 1 => "Success",
+ 2 => "Invalid object received",
+ 16 => "Access denied" );
+
function csrf_ignore($method) {
$csrf_ignored = array("index", "edit");
@@ -167,6 +173,7 @@ class Pref_Instances extends Handler_Protected {
".__('Instance URL')." |
".__('Access key')." |
".__('Last connected')." |
+ ".__('Status')." |
".__('Stored feeds')." |
";
@@ -193,6 +200,7 @@ class Pref_Instances extends Handler_Protected {
print "" . htmlspecialchars($line['access_url']) . " | ";
print "" . htmlspecialchars($access_key) . " | ";
print "" . htmlspecialchars($line['last_connected']) . " | ";
+ print "" . $this->status_codes[$line['last_status_out']] . " | ";
print "" . htmlspecialchars($line['num_feeds']) . " | ";
print "";
diff --git a/include/functions.php b/include/functions.php
index a81a2c0cd..0e98b4a54 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -5124,6 +5124,12 @@
if ($feeds) {
if ($feeds['error']) {
$status = $feeds['error']['code'] + 10;
+
+ // access denied
+ if ($status == 16) {
+ db_query($link, "DELETE FROM ttrss_linked_feeds
+ WHERE instance_id = '$id'");
+ }
} else {
$status = 1;