diff --git a/php/api.php b/php/api.php index 1ca6c5e..7bd578d 100755 --- a/php/api.php +++ b/php/api.php @@ -40,6 +40,7 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) { } # Define the table prefix + if (!isset($dbTablePrefix)) $dbTablePrefix = ''; defineTablePrefix($dbTablePrefix); # Connect to database diff --git a/view.php b/view.php index 3f5f6df..50931db 100644 --- a/view.php +++ b/view.php @@ -31,6 +31,7 @@ require(LYCHEE_CONFIG_FILE); # Define the table prefix + if (!isset($dbTablePrefix)) $dbTablePrefix = ''; defineTablePrefix($dbTablePrefix); $database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);