From 468ec7fb1d8d207825699f62aacf0be53769923c Mon Sep 17 00:00:00 2001 From: Ario Date: Tue, 17 Sep 2019 12:40:51 +0200 Subject: [PATCH] log --- include/block.inc.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/block.inc.php b/include/block.inc.php index 129db80..3d8b769 100755 --- a/include/block.inc.php +++ b/include/block.inc.php @@ -309,10 +309,14 @@ class Block * * * */ - - $res = $db->run( - "SHOW TABLES LIKE 'networkstats'" - ); + try { + $res = $db->run( + "SHOW TABLES LIKE 'networkstats'" + ); + + } catch (Exception $e) { + $res = false; + } _log($res,3); if($res !== FALSE) {