r5484 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5483‎ | r5484 | r5485 >
Date:08:32, 25 September 2004
Author:jeluf
Status:old
Tags:
Comment:
Avoid warning when incrementing non-existing element of array
Modified paths:
  • /trunk/phase3/includes/memcached-client.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/memcached-client.php
@@ -763,7 +763,7 @@
764764 return null;
765765
766766 $key = is_array($key) ? $key[1] : $key;
767 - $this->stats[$cmd]++;
 767+ @$this->stats[$cmd]++;
768768 if (!fwrite($sock, "$cmd $key $amt\r\n"))
769769 return $this->_dead_sock($sock);
770770

Status & tagging log