diff options
| author | Christian Schneider | 2026-01-26 18:23:43 +0100 |
|---|---|---|
| committer | Christian Schneider | 2026-01-26 18:23:43 +0100 |
| commit | 28fafec84397f2a8375a7eebc5101b44be8521b7 (patch) | |
| tree | 84b40721adc6fab67c34f76b5448473f891bcca5 /it_url.class | |
| parent | 6729b9e7392da9ada6a7a9f2f81cc86ddc74f000 (diff) | |
| download | itools-28fafec84397f2a8375a7eebc5101b44be8521b7.tar.gz itools-28fafec84397f2a8375a7eebc5101b44be8521b7.tar.bz2 itools-28fafec84397f2a8375a7eebc5101b44be8521b7.zip | |
Work-around for bool to array cast warning, should we change get_cache? (mail3160)
Diffstat (limited to 'it_url.class')
| -rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index e2c0e13..716eb24 100644 --- a/it_url.class +++ b/it_url.class @@ -739,7 +739,7 @@ static function get_cache($p = array()) */ static function get_cache_contents($p) { - [$fn, $dummy, $cachemiss] = self::get_cache($p + ['returncachemiss' => true]); + [$fn, $dummy, $cachemiss] = self::get_cache($p + ['returncachemiss' => true]) ?: []; # FIXME 2026-02 CS Should we change get_cache to return null instead of false? if ($fn) { $result = it::file_get_contents($fn); |