Skip to content

Commit

Permalink
Merge pull request #93 from remicollet/issue-740beta1
Browse files Browse the repository at this point in the history
Fix PHP Notice:  Trying to access array offset on value of type bool …
  • Loading branch information
kenguest authored Aug 6, 2019
2 parents 4d4571a + c989dc2 commit de5f03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PEAR/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function retrieveData($url, $accept = false, $forcestring = false, $channel = fa

function useLocalCache($url, $cacheid = null)
{
if ($cacheid === null) {
if (!is_array($cacheid)) {
$cacheidfile = $this->config->get('cache_dir') . DIRECTORY_SEPARATOR .
md5($url) . 'rest.cacheid';
if (!file_exists($cacheidfile)) {
Expand Down

0 comments on commit de5f03d

Please sign in to comment.