Selaa lähdekoodia

Error when deleting a feed, wrong object

https://github.com/FreshRSS/FreshRSS/issues/816
Alexandre Alapetite 11 vuotta sitten
vanhempi
commit
d7706b66f5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/Models/ConfigurationSetter.php

+ 1 - 1
app/Models/ConfigurationSetter.php

@@ -117,7 +117,7 @@ class FreshRSS_ConfigurationSetter {
 	private function _queries(&$data, $values) {
 		$data['queries'] = array();
 		foreach ($values as $value) {
-			if ($value != null) {
+			if ($value instanceof FreshRSS_UserQuery) {
 				$data['queries'][] = $value->toArray();
 			}
 		}