Browse Source

Fixed a notice error for old Lychee users

Tobias Reich 9 years ago
parent
commit
b1607a0ed3
2 changed files with 2 additions and 0 deletions
  1. 1 0
      php/api.php
  2. 1 0
      view.php

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

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