From 498deb43f2a8928f64d5c36fd450648d19e00153 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 May 2007 13:18:39 +0000 Subject: [PATCH] Added view to valid objects git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6371 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_log.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_log.inc b/include/class_log.inc index 2a9810f38..e3ec3a513 100644 --- a/include/class_log.inc +++ b/include/class_log.inc @@ -70,6 +70,7 @@ class log { if(count($msgs)){ foreach($msgs as $msg){ trigger_error("Logging failed, reason was: ".$msg); + print_red("Logging failed, reason was: ".$msg); } }else{ @@ -91,7 +92,7 @@ class log { $msgs[] = "Currently active user is empty."; } - if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot"))){ + if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot","view"))){ $msgs[] = "Invalid option specified '".$entry['action']."'"; } -- 2.30.2