예제 #1
0
 function check_vars($nullvar = "")
 {
     global $module, $patient;
     if (!isset($module)) {
         trigger_error("No Module Defined", E_ERROR);
     }
     if ($patient < 1) {
         trigger_error("No Patient Defined", E_ERROR);
     }
     // check access to patient
     if (!freemed::check_access_for_patient($patient)) {
         trigger_error("User not Authorized for this function", E_USER_ERROR);
     }
     return true;
 }