-sqgetGlobalVar('messages', $messages);
-sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
-
-if ( sqgetGlobalVar('mailbox', $temp, SQ_GET) ) {
- $mailbox = urldecode($temp);
-}
-if ( !sqgetGlobalVar('ent_id', $ent_id, SQ_GET) ) {
- $ent_id = '';
+if (sqgetGlobalVar('passed_id', $temp, SQ_GET)) {
+ $passed_id = (int) $temp;