Skip to content

Commit

Permalink
Bug 871: guest is not saved in history table
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@2620 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Sep 28, 2008
1 parent 7bc97f0 commit 3ede19d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions include/functions.inc.php
Expand Up @@ -514,18 +514,14 @@ function pwg_log($image_id = null, $image_type = null)
{
global $conf, $user, $page;

$do_log = true;
if (!$conf['log'])
$do_log = $conf['log'];
if (is_admin())
{
$do_log = false;
$do_log = $conf['history_admin'];
}
if (is_admin() and !$conf['history_admin'])
if (is_a_guest())
{
$do_log = false;
}
if (is_a_guest() and !$conf['history_guest'])
{
$do_log = false;
$do_log = $conf['history_guest'];
}

$do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type);
Expand Down

0 comments on commit 3ede19d

Please sign in to comment.