We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2679261 + 85722ac commit 4e85943Copy full SHA for 4e85943
cache.php
@@ -224,6 +224,9 @@ function memcache_mem( $key ) {
224
if( $key == 'hash' )
225
$key = 'hash_bytes';
226
227
+ if (!is_array($memcache_stats))
228
+ return 0;
229
+
230
$result = 0;
231
foreach( $memcache_stats as $server )
232
$result += empty($server[$key]) ? 0 : $server[$key];
@@ -262,6 +265,9 @@ function memcache_ref() {
262
265
263
266
$items = $memcache->getAllKeys();
264
267
268
+ if (!is_array($items))
269
+ return array();
270
271
$keys = array();
272
foreach( $items as $item ) {
273
$keys[$item] = memcache_get_key($item);
0 commit comments