Skip to content

A free, self-hostable news aggregator…

PHP7 share bug

Alexandre Alapetiteb501fd651425
diff --git a/app/Models/Share.php b/app/Models/Share.php
index 2a05f2ee9..1c8a7e767 100644
--- a/app/Models/Share.php
+++ b/app/Models/Share.php
@@ -119,11 +119,9 @@ class FreshRSS_Share {
);
foreach ($options as $key => $value) {
- if (!isset($available_options[$key])) {
- continue;
+ if (isset($available_options[$key])) {
+ $this->{$available_options[$key]} = $value;
}
-
- $this->$available_options[$key] = $value;
}
}