Explorar el Código

Raccourcis : tolère l'ajout de nouveaux

Tolère l'ajout de nouveaux inconnus des versions précédents de FreshRSS,
et plus robuste en cas de mauvais fichier de configuration utilisateur.
Alexandre Alapetite hace 12 años
padre
commit
082246d13f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/models/RSSConfiguration.php

+ 1 - 1
app/models/RSSConfiguration.php

@@ -380,7 +380,7 @@ class RSSConfigurationDAO extends Model_array {
 			$this->old_entries = $this->array['old_entries'];
 			$this->old_entries = $this->array['old_entries'];
 		}
 		}
 		if (isset ($this->array['shortcuts'])) {
 		if (isset ($this->array['shortcuts'])) {
-			$this->shortcuts = $this->array['shortcuts'];
+			$this->shortcuts = array_merge ($this->shortcuts, $this->array['shortcuts']);
 		}
 		}
 		if (isset ($this->array['mail_login'])) {
 		if (isset ($this->array['mail_login'])) {
 			$this->mail_login = $this->array['mail_login'];
 			$this->mail_login = $this->array['mail_login'];