Project

General

Profile

« Previous | Next » 

Revision 829

Added by doc over 16 years ago

Fixed bug introduced with Changeset 826

View differences:

details.php
64 64
	// use regular expressions to fetch the content of the variable from the string
65 65
	$tool_description = get_variable_content('module_description', $data, false, false);
66 66
	// replace optional placeholder {WB_URL} with value stored in config.php
67
	$tool_description = str_replace('{WB_URL}', WB_URL, $tool_description);
67
	if($tool_description !== false && strlen(trim($tool_description)) != 0) {
68
		$tool_description = str_replace('{WB_URL}', WB_URL, $tool_description);
69
	} else {
70
		$tool_description = false;
71
	}
68 72
}		
69 73
if($tool_description !== false) {
70 74
	// Override the module-description with correct desription in users language

Also available in: Unified diff