From 9858a8aa158061e1ec956a8e63b96a27cd98e04a Mon Sep 17 00:00:00 2001 From: rohieb Date: Sun, 13 Jul 2008 23:03:36 +0200 Subject: [PATCH] explicitly set the module for log_insert(), SQL table is updated automagically on the first log entry --- Makefile | 6 ------ includes/functions.inc | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) mode change 100644 => 100755 Makefile mode change 100644 => 100755 includes/functions.inc diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index 1cd33c8..2a4fc00 --- a/Makefile +++ b/Makefile @@ -71,12 +71,6 @@ sourcedoc: install: sourcedoc links chkdb -r chkpriv - - @if [ -z "`psql -qc "SELECT * FROM log_module;" 2>&1 |grep ERROR`" -a -z \ - "`psql -qc \"SELECT COUNT(*) FROM log_module WHERE module = 'Room Reservation Schedule';\" 2>&1 |grep ' 1'`" ]; then \ - echo psql -c "INSERT INTO log_module VALUES('Room Reservation Schedule');"; \ - psql -c "INSERT INTO log_module VALUES('Room Reservation Schedule');"; \ - fi; chklocale # uninstalling diff --git a/includes/functions.inc b/includes/functions.inc old mode 100644 new mode 100755 index 1704bc5..bdb79a6 --- a/includes/functions.inc +++ b/includes/functions.inc @@ -183,7 +183,7 @@ function isMailAddress($strAddr) { * @return void */ function rrInsertLog($strLog) { - log_insert("Raumbelegungsplan: " . $strLog); + log_insert($strLog, null, "Room Reservation Schedule"); } /** -- 2.20.1