소스 검색

Merge pull request #1096 from Alkarex/php7-share

PHP7 share bug
Alexandre Alapetite 10 년 전
부모
커밋
830c5aad03
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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;
 		}
 	}