From: Jens Frank Date: Sat, 25 Sep 2004 08:32:53 +0000 (+0000) Subject: Avoid warning when incrementing non-existing element of array X-Git-Tag: 1.5.0alpha1~1805 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=17db2f5885ecd6da36a1741203b9089b3693e769;p=lhc%2Fweb%2Fwiklou.git Avoid warning when incrementing non-existing element of array --- diff --git a/includes/memcached-client.php b/includes/memcached-client.php index 17d9ecbecd..48f10090ab 100644 --- a/includes/memcached-client.php +++ b/includes/memcached-client.php @@ -763,7 +763,7 @@ class memcached return null; $key = is_array($key) ? $key[1] : $key; - $this->stats[$cmd]++; + @$this->stats[$cmd]++; if (!fwrite($sock, "$cmd $key $amt\r\n")) return $this->_dead_sock($sock);