summaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-03-07 21:04:16 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-03-07 21:04:16 -0500
commit1fea1277d6dffd6b71a78c33a53422ce1282de9a (patch)
tree44cd31b6e35f93df24450e13a139cdd8c9080dae /app/Models
parentf8eac7d1a5486106bbb11404d5060b0feb7baf56 (diff)
Change test
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Configuration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index 85e891b64..3e5cd8bad 100644
--- a/app/Models/Configuration.php
+++ b/app/Models/Configuration.php
@@ -210,7 +210,7 @@ class FreshRSS_Configuration {
}
// Add a default name
- if (!array_key_exists('name', $value) || strcmp($value['name'], '') === 0) {
+ if (empty($value['name'])) {
$value['name'] = $value['type'];
}