fix Database connection [default] not configured

This commit is contained in:
xiaomlove
2022-06-12 21:32:15 +08:00
parent 43156f7fc5
commit 024ef8b665
4 changed files with 5 additions and 5 deletions

View File

@@ -680,7 +680,7 @@ class TrackerRepository extends BaseRepository
$log .= "[SP_STATE_REAL]: $spStateReal";
$promotionInfo = apply_filter('torrent_promotion', $torrent->toArray());
do_log("promotionInfo from filter torrent_promotion by torrent: " . $torrent->id . ", get : " . json_encode($promotionInfo));
if ($promotionInfo['sp_state'] != $spStateReal) {
if (isset($promotionInfo['__ignore_global_sp_state']) && $promotionInfo['sp_state'] != $spStateReal) {
$spStateReal = $promotionInfo['sp_state'];
$log .= "[CHANGE_SP_STATE_REAL_BY_FILTER_TORRENT_PROMOTION]: $spStateReal";
}