Improvement in Alfresco PM functions

This commit is contained in:
Julio Cesar Laura
2013-05-27 16:44:14 -04:00
parent e72dbfcc53
commit f2f74e1885
2 changed files with 10 additions and 10 deletions

View File

@@ -153,7 +153,7 @@ try {
$template->assign ( 'ADD_TRI_VARIABLE', $tri_Button );
// $template->assign ( 'ADD_TRI_VALUE', str_replace ( "'", "",
// str_replace ( '"', '', $paramDefaultValue ) ) );
$paramValue = $_GET[trim( str_replace( "$", "", $paramName ) )];
$paramValue = isset($_GET[trim( str_replace( "$", "", $paramName ) )]) ? $_GET[trim( str_replace( "$", "", $paramName ) )] : '';
$template->assign ( 'ADD_TRI_VALUE', str_replace("\'", "'", $paramValue) );
//turn single quotes to double quotes into an array asignation
$template->assign ( 'ADD_TRI_VALUE', str_replace("'", """, $paramValue) );