Authored by Olivier Poitrey

When storeImage:imageData:forKey:toDisk: is called with toDisk:YES but no data, …

…do not prevent memory caching (fix: #24)
... ... @@ -188,15 +188,11 @@ static SDImageCache *instance;
return;
}
if (toDisk && !data)
{
return;
}
[memCache setObject:image forKey:key];
if (toDisk)
{
if (!data) return;
NSArray *keyWithData;
if (data)
{
... ...