1
0
Fork 0

Avoid caching nulls, refs #5234

pull/5238/head
Jordi Boggiano 2016-04-22 20:55:07 +01:00
parent 38c49b32cb
commit 4c50136522
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class GitHubDriver extends VcsDriver
} }
} }
if (preg_match('{[a-f0-9]{40}}i', $identifier)) { if ($composer && preg_match('{[a-f0-9]{40}}i', $identifier)) {
$this->cache->write($identifier, json_encode($composer)); $this->cache->write($identifier, json_encode($composer));
} }