Parcourir la source

PHP7 share bug

https://github.com/FreshRSS/FreshRSS/issues/1072
Alexandre Alapetite il y a 10 ans
Parent
commit
b501fd6514
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      app/Models/Share.php

+ 2 - 4
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;
 		}
 	}