cachefile || -> &&

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5813 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-12-09 13:00:40 +00:00
parent 6d2be7b111
commit f3337996b9

View File

@@ -195,7 +195,7 @@ class cachefile
} }
$this->garbage (); $this->garbage ();
if (! is_string ($id) || ! is_integer ($id)) if (! is_string ($id) && ! is_integer ($id))
throw new \Exception ("CacheFile read ID not a string : ".gettype ($id), throw new \Exception ("CacheFile read ID not a string : ".gettype ($id),
500); 500);
$fileCache = $this->directory."/".sha1 ($id); $fileCache = $this->directory."/".sha1 ($id);