X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations%2Fphotos.inc.php;h=7194e04d0dcf73b7dfacec125559d5704962a0b2;hb=385c5e9423d3b00d82fd5f8cae59cf61ff9d43fc;hp=93b0ec99fe9a0a0ef7c8d2ae165705718a2e26f3;hpb=5daf68f6846682e439570b5245a6109ada8d9304;p=platal.git diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index 93b0ec9..7194e04 100644 --- a/include/validations/photos.inc.php +++ b/include/validations/photos.inc.php @@ -43,7 +43,7 @@ class PhotoReq extends Validate // }}} // {{{ constructor - public function __construct(User $_user, PlUpload &$upload, $_stamp=0) + public function __construct(User &$_user, PlUpload &$upload, $_stamp=0) { parent::__construct($_user, true, 'photo', $_stamp); $this->read($upload); @@ -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; }