diff --git a/app/devices/device_dashboard.php b/app/devices/device_dashboard.php index e168aaf16f..d87ddcea81 100644 --- a/app/devices/device_dashboard.php +++ b/app/devices/device_dashboard.php @@ -162,7 +162,7 @@ //get device keys $sql = "SELECT device_uuid, device_profile_uuid FROM v_devices "; - $sql .= "WHERE user_uuid = '".$_SESSION['user_uuid']."' "; + $sql .= "WHERE device_user_uuid = '".$_SESSION['user_uuid']."' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $row = $prep_statement->fetch(PDO::FETCH_NAMED); diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 6a973a58ac..48d13f2bd6 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2008-2015 All Rights Reserved. + Copyright (C) 2008-2016 All Rights Reserved. */ require_once "root.php";