From eda7fd335cc4bea64a637c5d3bcdd1d1f3fd0d94 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 20 Mar 2006 01:55:03 +0000 Subject: catalog clean up and admin index changes --- lib/log.lib.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/log.lib.php') diff --git a/lib/log.lib.php b/lib/log.lib.php index d8e68014..d187fa60 100644 --- a/lib/log.lib.php +++ b/lib/log.lib.php @@ -30,6 +30,9 @@ function log_event($username='Unknown',$event_name,$event_description,$log_name= /* Set it up here to make sure it's _always_ the same */ $log_time = time(); + /* must have some name */ + if (!strlen($log_name)) { $log_name = 'ampache'; } + $log_filename = conf('log_path') . "/$log_name." . date("Ymd",$log_time) . ".log"; $log_line = date("Y-m-d H:i:s",$log_time) . " { $username } ( $event_name ) - $event_description \n"; -- cgit