php7 bug fix 7
[openemr.git] / library / ajax / drug_screen_completed.php
blob6a42ddbf0820657484d944286124af4867ed13e2
1 <?php
2 /**
4 * Drug Screen Complete Update Database
6 * LICENSE: This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
17 * @package OpenEMR
19 * @author Terry Hill <terry@lillysystems.com>
20 * @link http://www.open-emr.org
22 * Please help the overall project by sending changes you make to the author and to the OpenEMR community.
26 $sanitize_all_escapes = true;
27 $fake_register_globals = false;
29 require_once("../../interface/globals.php");
31 $drugval = '0';
32 if ($_POST['testcomplete'] =='true') {
33 $drugval = '1';
36 $tracker_id = $_POST['trackerid'];
37 if($tracker_id != 0)
39 sqlStatement("UPDATE patient_tracker SET " .
40 "drug_screen_completed = ? " .
41 "WHERE id =? ", array($drugval,$tracker_id));