### v. 1.8 Encountered/Fixed
-* Bug 18 - Same day datediff is displaying wrong report in time stack on the page.
+* Bug 19 - Same day datediff is displaying wrong report in time stack on the page.
* ✔ Issue 18 - Setting excludes for views, deliveres page but long delays with server finished exchange (page doesn't hang).
* The page is server delivered, if sections contain external internet links, this timeouts page browser delivery if the internet is down.
* ✔ Bug 17 - Editing of entries on occasions, duplicates entries.
my $stamp = getCurrentSQLTimeStamp();
if(!$cat){
my @arr = selectRecords($db,"SELECT ID FROM CAT WHERE NAME LIKE 'System';")->fetchrow_array();
- $cat = 0 if not @arr;
+ if(@arr){
+ $cat = $arr[0];
+ }
+ else{
+ $cat = 6;
+ }
}
$log =~ s/'/''/g;
- $db->do("INSERT INTO LOG (ID_CAT, DATE, LOG) VALUES(6,'$stamp', \"$log\");");
+ $db->do("INSERT INTO LOG (ID_CAT, DATE, LOG) VALUES($cat,'$stamp', \"$log\");");
}
sub countRecordsIn {