From 626287862f6e375d1c5cdbf629a62f1f304cd984 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Fri, 7 Dec 2007 15:31:41 +0000 Subject: pass variables instead of strings --- packages/lcdproc/lcdproc.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/lcdproc/lcdproc.inc b/packages/lcdproc/lcdproc.inc index f268d4b3..79a04cc2 100644 --- a/packages/lcdproc/lcdproc.inc +++ b/packages/lcdproc/lcdproc.inc @@ -276,7 +276,7 @@ EOD; lcdproc_warn("Failed to interpret lcd commands"); return; } - $lcd = fsockopen(LCDPROC_HOST, LCDPROC_PORT, $errno, $errstr, 30); + $lcd = fsockopen($LCDPROC_HOST, $LCDPROC_PORT, $errno, $errstr, 30); if (!$lcd) { lcdproc_warn("Failed to connect to LCDd process $errstr ($errno)"); } else { @@ -289,8 +289,8 @@ EOD; lcdproc_notice("LCDd output for cmd $lcd_cmd is: $cmd_output"); usleep(100); } + fclose($lcd); } - fclose($lcd); } -- cgit v1.2.3