aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-03-24 22:51:51 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-03-24 22:51:51 +0100
commitd7706b66f586b36e44e471b5c06526de258af8b8 (patch)
treeff6b807b7c9fba4e79d2e7949c953f64a206fae5 /app/Models/ConfigurationSetter.php
parent239a010ef23127429698b6be5f4a5453b0bfbad7 (diff)
Error when deleting a feed, wrong object
https://github.com/FreshRSS/FreshRSS/issues/816
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index 978cc8cb9..7f433239c 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/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();
}
}