Browse Source

Merge branch 'php7-share' into dev

Alexandre Alapetite 10 năm trước cách đây
mục cha
commit
7b896d9fc0
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  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;
 		}
 	}