diff options
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 0c4e462e9..261260b16 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -354,6 +354,8 @@ function pwg_log( $file, $category, $picture = '' ) if ($conf['log']) { + if ( ($conf['history_admin'] ) or ( (! $conf['history_admin']) and ($user['status'] != 'admin') ) ) + { $login = ($user['id'] == $conf['guest_id']) ? 'guest' : addslashes($user['username']); @@ -370,6 +372,7 @@ INSERT INTO '.HISTORY_TABLE.' ;'; pwg_query($query); } + } } // format_date returns a formatted date for display. The date given in |