From a012fc2ee5e95b11c525d1863eb69fe4f2aed106 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 4 Jul 2013 16:06:59 +0200 Subject: [PATCH] catch PHP warning --- public/include/smarty_globals.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index e2550e84..dd72974a 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -21,8 +21,7 @@ if (@$_SESSION['AUTHENTICATED']) { } } // Always fetch this since we need for ministats header -if ($bitcoin->can_connect() === true) - $dNetworkHashrate = $bitcoin->query('getnetworkhashps'); +$bitcoin->can_connect() === true ? $dNetworkHashrate = $bitcoin->query('getnetworkhashps') : $dNetworkHashrate = 0; // Fetch some data $iCurrentActiveWorkers = $worker->getCountAllActiveWorkers();