diff --git a/src/admin/reports.php b/src/admin/reports.php index bc327e1b..4108d416 100644 --- a/src/admin/reports.php +++ b/src/admin/reports.php @@ -1185,7 +1185,7 @@ else { $sqlquery = "UPDATE " . DB_SAVEDREPORTS . " SET - sourceid = " . $content['SourceID'] . ", + sourceid = '" . $content['SourceID'] . "', customTitle = '" . $content['customTitle'] . "', customComment = '" . $content['customComment'] . "', filterString = '" . $content['filterString'] . "', diff --git a/src/include/db_template.txt b/src/include/db_template.txt index b1e2f250..b8b2f4d0 100644 --- a/src/include/db_template.txt +++ b/src/include/db_template.txt @@ -175,7 +175,7 @@ DROP TABLE IF EXISTS `logcon_savedreports`; CREATE TABLE `logcon_savedreports` ( `ID` int(11) NOT NULL auto_increment, `reportid` varchar(255) NOT NULL, - `sourceid` int(11) NOT NULL, + `sourceid` varchar(11) NOT NULL, `customTitle` varchar(255) NOT NULL, `customComment` text NOT NULL, `filterString` text NOT NULL,