Fixed a notice error for old Lychee users
This commit is contained in:
parent
e20ba354da
commit
b1607a0ed3
@ -40,6 +40,7 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Define the table prefix
|
# Define the table prefix
|
||||||
|
if (!isset($dbTablePrefix)) $dbTablePrefix = '';
|
||||||
defineTablePrefix($dbTablePrefix);
|
defineTablePrefix($dbTablePrefix);
|
||||||
|
|
||||||
# Connect to database
|
# Connect to database
|
||||||
|
1
view.php
1
view.php
@ -31,6 +31,7 @@
|
|||||||
require(LYCHEE_CONFIG_FILE);
|
require(LYCHEE_CONFIG_FILE);
|
||||||
|
|
||||||
# Define the table prefix
|
# Define the table prefix
|
||||||
|
if (!isset($dbTablePrefix)) $dbTablePrefix = '';
|
||||||
defineTablePrefix($dbTablePrefix);
|
defineTablePrefix($dbTablePrefix);
|
||||||
|
|
||||||
$database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);
|
$database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);
|
||||||
|
Loading…
Reference in New Issue
Block a user