Project

General

Profile

« Previous | Next » 

Revision 1366

Added by Dietmar almost 14 years ago

fixed showing system_default for search_template

View differences:

index.php
293 293
	}
294 294

  
295 295
// Insert templates for search settings
296
	$search_template = ( ($search_template == DEFAULT_TEMPLATE) || ($search_template == '') ) ? DEFAULT_TEMPLATE : $search_template;
296
	$search_template = ( ($search_template == DEFAULT_TEMPLATE) || ($search_template == '') ) ? '' : $search_template;
297 297
	$selected = ( ($search_template != DEFAULT_TEMPLATE) ) ?  ' selected="selected"' : $selected = '';
298 298

  
299 299
	$template->set_var(array(
......
301 301
	        'NAME' => $TEXT['SYSTEM_DEFAULT'],
302 302
	        'SELECTED' => $selected
303 303
	    ));
304
	$template->parse('search_template_list', 'search_template_list_block', true);
304 305

  
305 306
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'template' ORDER BY name");
306 307
	if($result->numRows() > 0)

Also available in: Unified diff