From c9847bc40b98b7cd6c84b86fa8709c3ad8187d73 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 20 Nov 2005 23:50:21 +0000 Subject: Use same exec() command when debugging --- etc/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 6218c01..cea6998 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -308,7 +308,7 @@ function mwexec($command) { if ($g['debug']) { if (!$_SERVER['REMOTE_ADDR']) echo "mwexec(): $command\n"; - passthru($command, $retval); + exec("$command > /dev/null 2>&1", $oarr, $retval); } else { exec("$command > /dev/null 2>&1", $oarr, $retval); } -- cgit v1.1