From 7e14ab248e7117fd0133c40f0a460adf89eba5e6 Mon Sep 17 00:00:00 2001 From: fellipevasconcelos Date: Wed, 19 Feb 2014 15:22:02 -0300 Subject: [PATCH] correcoes --- Controller/PrinterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/PrinterController.php b/Controller/PrinterController.php index 6c57209..c7d667f 100755 --- a/Controller/PrinterController.php +++ b/Controller/PrinterController.php @@ -398,7 +398,7 @@ class PrinterController extends Controller $host = $printer->getHost(); $com = "snmpwalk -O qv -v 1 -c $community $host 1.3.6.1.2.1.43.10.2.1.4.1.1"; - $this->updateCounter($printer, '122'); + if($outPut = shell_exec($com)) { $this->updateCounter($printer, $outPut); -- libgit2 0.21.2