Skip to content

Commit

Permalink
Check if TIME_NOW is defined
Browse files Browse the repository at this point in the history
Fixes compatibility issues with never versions of PHP
  • Loading branch information
srexi committed Apr 4, 2022
1 parent 455964c commit 74fffbc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/plugins/rexshop.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

if (!defined("IN_MYBB")) {
if (! defined("IN_MYBB")) {
die("This file cannot be accessed directly.");
}

define('TIME_NOW', time());
if (! defined('TIME_NOW')) {
define('TIME_NOW', time());
}
define('BAN_REASON_CHARGEBACK', 'payment_disputed');
define('REXSHOP_USERGROUP_EXPIRED', 2);
define('REXSHOP_STATUS_COMPLETED', 'completed');
Expand Down

0 comments on commit 74fffbc

Please sign in to comment.