Skip to content

A free, self-hostable news aggregator…

Change test

Alexis Degrugillierb0a3610db735
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'];
}