|
@@ -355,11 +355,11 @@ class Application extends Base
|
|
|
$application_info['is_urgent'] = 0;
|
|
|
$remote_doctor_id = isset($param['remote_doctor_id']) ? $param['remote_doctor_id'] : '';
|
|
|
$d_time = date('H:i',strtotime('+1 hour'));
|
|
|
- }
|
|
|
- if($remote_doctor_id === '') {
|
|
|
- $manager = DB::table('doctors')->where('institution_id',$application_info['remote_institution_id'])->where('is_admin', '1')->field('id')->find();
|
|
|
- if(!empty($manager)) {
|
|
|
- $remote_doctor_id = $manager['id'];
|
|
|
+ if($remote_doctor_id === '') {
|
|
|
+ $manager = DB::table('doctors')->where('institution_id',$application_info['remote_institution_id'])->where('is_admin', '1')->field('id')->find();
|
|
|
+ if(!empty($manager)) {
|
|
|
+ $remote_doctor_id = $manager['id'];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
$application_info['application_desc'] = isset($param['description']) ? $param['description'] : '';
|