Skip to content

Commit 74fffbc

Browse files
authored
Check if TIME_NOW is defined
Fixes compatibility issues with never versions of PHP
1 parent 455964c commit 74fffbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

inc/plugins/rexshop.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22

3-
if (!defined("IN_MYBB")) {
3+
if (! defined("IN_MYBB")) {
44
die("This file cannot be accessed directly.");
55
}
6-
7-
define('TIME_NOW', time());
6+
if (! defined('TIME_NOW')) {
7+
define('TIME_NOW', time());
8+
}
89
define('BAN_REASON_CHARGEBACK', 'payment_disputed');
910
define('REXSHOP_USERGROUP_EXPIRED', 2);
1011
define('REXSHOP_STATUS_COMPLETED', 'completed');

0 commit comments

Comments
 (0)