summaryrefslogtreecommitdiff
path: root/it_cache.class
diff options
context:
space:
mode:
authorUrban Müller2018-06-21 16:12:20 +0200
committerUrban Müller2018-06-21 16:12:20 +0200
commit05e7ceefa1f0a29c665381b54ac882f260ae6c22 (patch)
treed9107f13ce76a21d77e8be2670f0b2e8d96f19e7 /it_cache.class
parentc8319c784267f81e2884a076365b8ca36f4ce0b2 (diff)
downloaditools-05e7ceefa1f0a29c665381b54ac882f260ae6c22.tar.gz
itools-05e7ceefa1f0a29c665381b54ac882f260ae6c22.tar.bz2
itools-05e7ceefa1f0a29c665381b54ac882f260ae6c22.zip
use safer it:: variants of file funcs
Diffstat (limited to 'it_cache.class')
-rw-r--r--it_cache.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_cache.class b/it_cache.class
index 08bc8a5..1e6df1e 100644
--- a/it_cache.class
+++ b/it_cache.class
@@ -101,7 +101,7 @@ static function _get_memcache($p)
{
$memcache = new Memcached;
- foreach (array_filter(it::replace(array('[#\s].*' => ""), file($p['hostsfile']))) as $host)
+ foreach (array_filter(it::replace(array('[#\s].*' => ""), it::file($p['hostsfile']))) as $host)
$reachable += intval(@$memcache->addServer($host, 11211));
$GLOBALS[$memcache_id] = $reachable ? $memcache : false;