ソースを参照

Fix Homepage Loading Sections Displaying for Disabled Items (#1204)

CauseFX 6 年 前
コミット
cb65799702
1 ファイル変更2 行追加2 行削除
  1. 2 2
      api/functions/homepage-functions.php

+ 2 - 2
api/functions/homepage-functions.php

@@ -234,7 +234,7 @@ function buildHomepageItem($homepageItem)
 			}
 			break;
 		case 'homepageOrderembynowplaying':
-			if ($GLOBALS['homepageEmbyStreams']) {
+			if ($GLOBALS['homepageEmbyStreams'] && $GLOBALS['homepageEmbyEnabled']) {
 				$item .= '<div class="white-box"><h2 class="text-center" lang="en">Loading Now Playing...</h2></div>';
 				$item .= '
 				<script>
@@ -246,7 +246,7 @@ function buildHomepageItem($homepageItem)
 			}
 			break;
 		case 'homepageOrderembyrecent':
-			if ($GLOBALS['homepageEmbyRecent']) {
+			if ($GLOBALS['homepageEmbyRecent'] && $GLOBALS['homepageEmbyEnabled']) {
 				$item .= '<div class="white-box"><h2 class="text-center" lang="en">Loading Recent...</h2></div>';
 				$item .= '
 				<script>