Fix: Security audit purged

This commit is contained in:
Laurent Destailleur
2011-11-30 20:20:16 +01:00
parent da2c033269
commit 497ebdfdf2

View File

@@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
@@ -88,7 +88,8 @@ if ($_REQUEST['action'] == 'confirm_purge' && $_REQUEST['confirm'] == 'yes' && $
$result=$securityevent->create($user);
if ($result > 0)
{
dol_syslog($text, LOG_WARNING);
$db->commit();
dol_syslog($text, LOG_WARNING);
}
else
{