From 6d2be7b1116eb6489909f959c97c6b558417b11c Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 9 Dec 2019 12:00:04 +0000 Subject: [PATCH] cachefile : || -> && git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5812 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- cachefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cachefile.php b/cachefile.php index a887294..dfe347e 100644 --- a/cachefile.php +++ b/cachefile.php @@ -157,7 +157,7 @@ class cachefile throw new \Exception ("CacheFile TTL invalid : not integer or negative". " : '$ttl'", 500); - if (! is_string ($id) || ! is_integer ($id)) + if (! is_string ($id) && ! is_integer ($id)) throw new \Exception ("CacheFile write ID not a string : ".gettype ($id), 500);