Browse Source

Fixed a bug with old Lychee installations

Tobias Reich 9 years ago
parent
commit
4d74507b06
2 changed files with 2 additions and 0 deletions
  1. 1 0
      plugins/check/index.php
  2. 1 0
      plugins/displaylog/index.php

+ 1 - 0
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

+ 1 - 0
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