fix: Update patient_tracker.php (#6595)
[openemr.git] / library / ajax / lists_touch.php
blob798e678aa456bf6d9f969e086618af498f16b9ef
1 <?php
3 /**
4 * This file contains a function to keep track of which issues
5 * types get modified.
7 * @package OpenEMR
8 * @link https://www.open-emr.org
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2011-2018 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 require_once(dirname(__FILE__) . "/../../interface/globals.php");
15 require_once(dirname(__FILE__) . "/../lists.inc.php");
17 use OpenEMR\Common\Csrf\CsrfUtils;
19 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
20 CsrfUtils::csrfNotVerified();
23 // IF there is a pid and type then will set the entry in lists_touch table
24 if (!(empty($_POST['patient_id'])) && !(empty($_POST['type']))) {
25 setListTouch($_POST['patient_id'], $_POST['type']);