Browse Source

Avoid undefined variable in cache_get_data

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
7ea792efec
1 changed files with 1 additions and 1 deletions
  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);