Explorar el Código

Merge pull request #818 from Alkarex/ConfigurationSetterBug

Configuration setter bug
Alexandre Alapetite hace 11 años
padre
commit
f8dfe12f4f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/Models/ConfigurationSetter.php

+ 3 - 1
app/Models/ConfigurationSetter.php

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