Fix many php warnings and notices
[platal.git] / include / notifs.inc.php
index ba3775b..714e97f 100644 (file)
@@ -148,7 +148,7 @@ function getNbNotifs() {
         return;
     }
 
-    return "<a href='carnet/panel'>$n évènement".($n > 1 ? 's' : '')." !</a>";
+    return "<a href='carnet/panel'>$n événement".($n > 1 ? 's' : '')." !</a>";
 }
 
 // }}}
@@ -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;