Selaa lähdekoodia

Avoid undefined variable in cache_get_data

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 12 vuotta sitten
vanhempi
commit
7ea792efec
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Sources/Load.php

+ 1 - 1
Sources/Load.php

@@ -2835,7 +2835,7 @@ function cache_get_data($key, $ttl = 120)
 		$cache_hits[$cache_count]['s'] = isset($value) ? strlen($value) : 0;
 	}
 
-	if (function_exists('call_integration_hook'))
+	if (function_exists('call_integration_hook') && isset($value))
 		call_integration_hook('cache_get_data', array($key, $ttl, $value));
 
 	return empty($value) ? null : @unserialize($value);