Fixed a notice error for old Lychee users

This commit is contained in:
Tobias Reich 2014-08-30 19:53:41 +02:00
parent e20ba354da
commit b1607a0ed3
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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);