From: Tim Starling Date: Wed, 7 Apr 2004 13:59:15 +0000 (+0000) Subject: fixed notices X-Git-Tag: 1.3.0beta1~568 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=fe7e324ea0a26b24a79721ea0522ad19037dcca8;p=lhc%2Fweb%2Fwiklou.git fixed notices --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 807f789827..0200a97e9d 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -166,7 +166,7 @@ class MessageCache $message = false; # Try the cache - if ( $this->mUseCache && $this->mCache ) { + if ( $this->mUseCache && $this->mCache && array_key_exists( $title, $this->mCache ) ) { $message = $this->mCache[$title]; } diff --git a/includes/memcached-client.php b/includes/memcached-client.php index 6a21542165..217417c60c 100644 --- a/includes/memcached-client.php +++ b/includes/memcached-client.php @@ -221,11 +221,11 @@ class memcached */ function memcached ($args) { - $this->set_servers($args['servers']); - $this->_debug = $args['debug']; + $this->set_servers(@$args['servers']); + $this->_debug = @$args['debug']; $this->stats = array(); - $this->_compress_threshold = $args['compress_threshold']; - $this->_persistant = isset($args['persistant']) ? $args['persistant'] : false; + $this->_compress_threshold = @$args['compress_threshold']; + $this->_persistant = array_key_exists('persistant', $args) ? (@$args['persistant']) : false; $this->_compress_enable = true; $this->_have_zlib = function_exists("gzcompress"); @@ -374,7 +374,7 @@ class memcached if (!is_resource($sock)) return false; - $this->stats['get']++; + @$this->stats['get']++; $cmd = "get $key\r\n"; if (!fwrite($sock, $cmd, strlen($cmd))) @@ -813,7 +813,7 @@ class memcached break; $offset += $n; $bneed -= $n; - $ret[$rkey] .= $data; + @$ret[$rkey] .= $data; } if ($offset != $len+2) @@ -866,7 +866,7 @@ class memcached if (!is_resource($sock)) return false; - $this->stats[$cmd]++; + @$this->stats[$cmd]++; $flags = 0;