Code cleanup: proper usage of the ReadParam function.

SVN:trunk[814]
This commit is contained in:
Denis Flaven
2010-09-10 14:11:30 +00:00
parent 3cc9d99aca
commit f120e21e00
5 changed files with 26 additions and 25 deletions

View File

@@ -1289,17 +1289,17 @@ EOF
break;
case 'do_modify_links':
$aLinks = utils::ReadParam('linkId', array(), 'post');
$sLinksToRemove = trim(utils::ReadParam('linksToRemove', '', 'post'));
$aLinks = utils::ReadPostedParam('linkId', array());
$sLinksToRemove = trim(utils::ReadPostedParam('linksToRemove', ''));
$aLinksToRemove = array();
if (!empty($sLinksToRemove))
{
$aLinksToRemove = explode(' ', trim($sLinksToRemove));
}
$sClass = utils::ReadParam('class', '', 'post');
$sLinkageAtt = utils::ReadParam('linkage', '', 'post');
$iObjectId = utils::ReadParam('object_id', '', 'post');
$sLinkingAttCode = utils::ReadParam('linking_attcode', '', 'post');
$sClass = utils::ReadPostedParam('class', '');
$sLinkageAtt = utils::ReadPostedParam('linkage', '');
$iObjectId = utils::ReadPostedParam('object_id', '');
$sLinkingAttCode = utils::ReadPostedParam('linking_attcode', '');
$oMyChange = MetaModel::NewObject("CMDBChange");
$oMyChange->Set("date", time());
if (UserRights::IsImpersonated())