mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
fix: Null $bb_cfg['tp_instance_hash']
(#1790)
This commit is contained in:
parent
9eb0aede73
commit
602137b651
2 changed files with 3 additions and 3 deletions
|
@ -54,9 +54,9 @@ if (empty($bb_cfg['bt_announce_url']) || ($bb_cfg['bt_announce_url'] === 'https:
|
|||
bb_update_config(['bt_announce_url' => FULL_URL . 'bt/announce.php']);
|
||||
}
|
||||
|
||||
// [Demo mode] Allow registering torrents by default
|
||||
// [Demo mode] Allow registering torrents by default for "Your first forum"
|
||||
if (IN_DEMO_MODE) {
|
||||
DB()->query("UPDATE " . BB_FORUMS . " SET allow_reg_tracker = 1 WHERE allow_reg_tracker = 0");
|
||||
DB()->query("UPDATE " . BB_FORUMS . " SET allow_reg_tracker = 1 WHERE allow_reg_tracker = 0 AND forum_id = 1 LIMIT 1");
|
||||
}
|
||||
|
||||
// Create unique TorrentPier instance hash
|
||||
|
|
|
@ -397,7 +397,7 @@ $userdata =& $user->data;
|
|||
/**
|
||||
* Some shared defines
|
||||
*/
|
||||
define('TP_INSTANCE_HASH', $bb_cfg['tp_instance_hash']);
|
||||
define('TP_INSTANCE_HASH', !empty($bb_cfg['tp_instance_hash']) ? $bb_cfg['tp_instance_hash'] : '');
|
||||
|
||||
/**
|
||||
* Cron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue