4
0
Эх сурвалжийг харах

Error when deleting a feed, wrong object

https://github.com/FreshRSS/FreshRSS/issues/816
Alexandre Alapetite 11 жил өмнө
parent
commit
d7706b66f5

+ 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();
 			}
 		}