Project

General

Profile

« Previous | Next » 

Revision 1687

Added by darkviper over 12 years ago

Drop tables in installer fixed
Twig_Autoloader activated

View differences:

save.php
235 235
}
236 236

  
237 237
// Find out if the user wants to install tables and data
238
if(isset($_POST['install_tables']) AND $_POST['install_tables'] == 'true') {
239
	$install_tables = true;
240
} else {
241
	$install_tables = false;
242
}
238
$install_tables ((isset($_POST['install_tables']) AND $_POST['install_tables'] == 'true'));
243 239
// End database details code
244 240

  
245 241
// Begin website title code
......
360 356
	require_once(WB_PATH.'/framework/class.login.php');
361 357
// Check if we should install tables
362 358

  
363
	$sql = 'SHOW TABLES LIKE \''.str_replace('_', '\_', TABLE_PREFIX).'%';
359
	$sql = 'SHOW TABLES LIKE \''.str_replace('_', '\_', TABLE_PREFIX).'%\'';
364 360
	$aTables = array();
365 361
	if(($oTables = $database->query($sql))) {
366 362
		while($aTable = $oTables->fetchRow()) {

Also available in: Unified diff