Commit e24b4fc5 authored by slopez's avatar slopez
Browse files

nazi

parent c4bad22f
...@@ -350,9 +350,9 @@ function gen_uid () ...@@ -350,9 +350,9 @@ function gen_uid ()
*/ */
function _log(&$dbrw, $action_log, $description_log, $context_log, &$user) function _log(&$dbrw, $action_log, $description_log, $context_log, &$user)
{ {
if(!is_a($user,'utilisateur')) if(!is_a($user,'utilisateur') || !$user->is_valid())
{ {
throw new Exception('Il faut un objet de type utilisateur (ou en héritant !)'); throw new Exception('Il faut un objet de type utilisateur (ou en héritant !) valide');
return false; return false;
} }
$time_log = date("Y-m-d H:i:s", time()); $time_log = date("Y-m-d H:i:s", time());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment