From 3e29ec48e39a090d6202a07297dbd47f709ca994 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 24 Dec 2002 12:43:13 +0000 Subject: [PATCH] Made args optional in daemonControl. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@218 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zmfuncs.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/zmfuncs.php b/web/zmfuncs.php index 4d80284b1..0960f6d71 100644 --- a/web/zmfuncs.php +++ b/web/zmfuncs.php @@ -81,7 +81,13 @@ function daemonControl( $command, $daemon=false, $args=false ) { $string = ZM_PATH."/zmdc.pl $command"; if ( $daemon ) - $string .= " $daemon $args"; + { + $string .= " $daemon"; + if ( $args ) + { + $string .= " $args"; + } + } $string .= " 2>/dev/null >&- <&- >/dev/null"; exec( $string ); }