Browse Source

Bug adresses de partage

https://github.com/marienfressinaud/FreshRSS/pull/340
Alexandre Alapetite 12 years ago
parent
commit
69c70070a5
1 changed files with 9 additions and 3 deletions
  1. 9 3
      app/views/helpers/view/normal_view.phtml

+ 9 - 3
app/views/helpers/view/normal_view.phtml

@@ -7,9 +7,15 @@ if (!empty($this->entries)) {
 	$display_today = true;
 	$display_today = true;
 	$display_yesterday = true;
 	$display_yesterday = true;
 	$display_others = true;
 	$display_others = true;
-	$shaarli = $this->loginOk && $this->conf->sharing ('shaarli');
-	$poche = $this->loginOk && $this->conf->sharing ('poche');
-	$diaspora = $this->loginOk && $this->conf->sharing ('diaspora');
+	if ($this->loginOk) {
+		$shaarli = $this->conf->sharing ('shaarli');
+		$poche = $this->conf->sharing ('poche');
+		$diaspora = $this->conf->sharing ('diaspora');
+	} else {
+		$shaarli = '';
+		$poche = '';
+		$diaspora = '';
+	}
 	$twitter = $this->conf->sharing ('twitter');
 	$twitter = $this->conf->sharing ('twitter');
 	$google_plus = $this->conf->sharing ('g+');
 	$google_plus = $this->conf->sharing ('g+');
 	$facebook = $this->conf->sharing ('facebook');
 	$facebook = $this->conf->sharing ('facebook');