From 5a25becff65b3bb1fd156ff2af785e28a6b1b418 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 8 Aug 2015 15:09:35 -0400 Subject: [PATCH] It's ID, not Id --- admin/manage_statuses.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/manage_statuses.php b/admin/manage_statuses.php index 47e36722..92fb65ef 100644 --- a/admin/manage_statuses.php +++ b/admin/manage_statuses.php @@ -645,11 +645,11 @@ function createStatus() { $my_order = $row[0]+10; // Get the next status id - $res = hesk_dbQuery("SELECT `Id` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` ORDER BY `Id` DESC LIMIT 1"); + $res = hesk_dbQuery("SELECT `ID` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` ORDER BY `Id` DESC LIMIT 1"); $row = hesk_dbFetchAssoc($res); - $nextId = $row['Id'] + 1; + $nextId = $row['ID'] + 1; - $insert = "INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (`Id`, `Key`, `TextColor`, `IsClosed`, `Closable`, `sort`) + $insert = "INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (`ID`, `Key`, `TextColor`, `IsClosed`, `Closable`, `sort`) VALUES (".intval($nextId).", 'STORED IN XREF TABLE', '".hesk_dbEscape($textColor)."', ".intval($isClosed).", '".hesk_dbEscape($closable)."', ".intval($my_order).")"; hesk_dbQuery($insert);