summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_pipe.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_pipe.class b/it_pipe.class
index faa93ea..a5a3f7b 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, (array)file($fn, FILE_IGNORE_NEW_LINES));
+ $this->lines = array_merge((array)$this->lines, ($t = file($fn, FILE_IGNORE_NEW_LINES)) === false ? array() : $t);
}
/**