From 4d74507b06a1a0017acf2141d43f093ddd409c36 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Thu, 4 Sep 2014 21:22:58 +0200 Subject: [PATCH] Fixed a bug with old Lychee installations --- plugins/check/index.php | 1 + plugins/displaylog/index.php | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/check/index.php b/plugins/check/index.php index c6e686c..608ae16 100644 --- a/plugins/check/index.php +++ b/plugins/check/index.php @@ -26,6 +26,7 @@ if (!file_exists(LYCHEE_CONFIG_FILE)) exit('Error 001: Configuration not found. require(LYCHEE_CONFIG_FILE); # Define the table prefix +if (!isset($dbTablePrefix)) $dbTablePrefix = ''; defineTablePrefix($dbTablePrefix); # Show separator diff --git a/plugins/displaylog/index.php b/plugins/displaylog/index.php index 195e3d9..18e2840 100644 --- a/plugins/displaylog/index.php +++ b/plugins/displaylog/index.php @@ -23,6 +23,7 @@ if (!file_exists(LYCHEE_CONFIG_FILE)) exit('Error 001: Configuration not found. require(LYCHEE_CONFIG_FILE); # Define the table prefix +if (!isset($dbTablePrefix)) $dbTablePrefix = ''; defineTablePrefix($dbTablePrefix); # Declare