Skip to content

Commit 37b625b

Browse files
committed
[FIX] Warning EVO_INSTALL_TIME.
1 parent 65b0d0a commit 37b625b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

core/bootstrap.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33

44
require_once __DIR__ . '/vendor/autoload.php';
55

6-
$tmp = __DIR__ . '.install';
7-
define('EVO_INSTALL_TIME', is_readable($tmp) ? (int)file_get_contents($tmp) : 0);
8-
unset($tmp);
6+
if (!defined('EVO_INSTALL_TIME')) {
7+
$tmp = __DIR__ . '.install';
8+
define('EVO_INSTALL_TIME', is_readable($tmp) ? (int)file_get_contents($tmp) : 0);
9+
unset($tmp);
10+
}
911

1012
$envFile = __DIR__ . '/custom/.env';
1113
if (is_readable($envFile) && class_exists(Dotenv\Dotenv::class)) {

0 commit comments

Comments
 (0)