Fix feed and category side effect

Before, when deleting a feed or a category, the user queries were deleted as well. No matter if they were related or not.
Now, they are deleted only if they are related.

I this this fix is not the best way to handle that. I think it would be better if we could find a way to create a UserQuery object from the array.
The same applies when displaying the user queries in the interface.

See #980
This commit is contained in:
Alexis Degrugillier committed 2015-09-11 18:45:25 -04:00
1 parent 5a2bc9261c
commit 271d43b569
1 file changed
+2
+2
View File
@@ -119,6 +119,8 @@ class FreshRSS_ConfigurationSetter {
foreach ($values as $value) {
if ($value instanceof FreshRSS_UserQuery) {
$data['queries'][] = $value->toArray();
} elseif (is_array($value)) {
$data['queries'][] = $value;
}
}
}