From fff44d4edaa5855f29f52c096b2a1e38bb19408c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 20 Aug 2012 17:09:14 +0000 Subject: no extra warnings on missing file --- it_pipe.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_pipe.class') 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)); } /** -- cgit v1.2.3