Merge commit 'origin/platal-0.10.0'
[platal.git] / include / validations / photos.inc.php
index f65b06c..2a2fec7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -141,7 +141,7 @@ class PhotoReq extends Validate
         XDB::execute('REPLACE INTO  photo (uid, attachmime, attach, x, y)
                             VALUES  ({?},{?},{?},{?},{?})',
                      $this->user->id(), $this->mimetype, $this->data, $this->x, $this->y);
-        register_watch_op($this->user->id(), WATCH_FICHE, 'photo');
+        register_watch_op($this->user->id(), WATCH_FICHE, '', 'photo');
         return true;
     }