diff options
author | Urban Müller | 2012-08-20 17:09:14 +0000 |
---|---|---|
committer | Urban Müller | 2012-08-20 17:09:14 +0000 |
commit | fff44d4edaa5855f29f52c096b2a1e38bb19408c (patch) | |
tree | aa5320f26efa6d1bf68ea2ae726e4c89748473e4 /it_pipe.class | |
parent | ab93a62f11ba31889e022c341d9f1b6b1bd99ea7 (diff) | |
download | itools-fff44d4edaa5855f29f52c096b2a1e38bb19408c.tar.gz itools-fff44d4edaa5855f29f52c096b2a1e38bb19408c.tar.bz2 itools-fff44d4edaa5855f29f52c096b2a1e38bb19408c.zip |
no extra warnings on missing file
Diffstat (limited to 'it_pipe.class')
-rw-r--r-- | it_pipe.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_pipe.class b/it_pipe.class index 43239b0..faa93ea 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -18,7 +18,7 @@ function __construct($p = array()) $this->lines = strlen($data = it::exec($p['cmd'], $p['args'])) ? explode("\n", rtrim($data, "\n")) : array(); else foreach ((array)($p['fn'] ? $p['fn'] : "php://stdin") as $fn) - $this->lines = array_merge((array)$this->lines, file($fn, FILE_IGNORE_NEW_LINES)); + $this->lines = array_merge((array)$this->lines, (array)file($fn, FILE_IGNORE_NEW_LINES)); } /** |