X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fnotifs.inc.php;h=3c99ede47071b21b51aff4d18dc995ab43e6aabe;hb=053126b2a8e3ab9336c55adf5981bb458ca04dbe;hp=ba3775b04037d9806ae4875fd2fc0a77c6543b32;hpb=7da8ef908e09ae0738f26838656abcb3f4c8d2ad;p=platal.git diff --git a/include/notifs.inc.php b/include/notifs.inc.php index ba3775b..3c99ede 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -285,7 +285,7 @@ class WatchSub { function update($ind) { $this->_data = Array(); XDB::execute('DELETE FROM watch_sub WHERE uid={?}', $this->_uid); - foreach(Env::getMixed($ind) as $key=>$val) { + foreach (Env::v($ind) as $key=>$val) { XDB::query('INSERT INTO watch_sub SELECT {?},id FROM watch_cat WHERE id={?}', $this->_uid, $key); if(mysql_affected_rows()) { $this->_data[$key] = $key;