summaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
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-08 09:18:07 -0500
commitb0a3610db735c7f719e8c35d84ffdc5a4e4987af (patch)
treeea1066b25d0da42487e803ab29b823bf770af497 /app/Models/Configuration.php
parente9eca6aff6c7e2e2349b3b6cf714e2e7eb99405e (diff)
Change test
Diffstat (limited to 'app/Models/Configuration.php')
-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'];
}