mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Remove all unneeded if($debug)-statements and replace them with d_echo . html dir..
This commit is contained in:
@@ -18,9 +18,7 @@ foreach (dbFetchRows('SELECT * FROM `mempools` WHERE device_id = ?', array($devi
|
||||
|
||||
if ($config['memcached']['enable'] === true) {
|
||||
$state = $memcache->get('mempool-'.$mempool['mempool_id'].'-state');
|
||||
if ($debug) {
|
||||
print_r($state);
|
||||
}
|
||||
d_echo($state);
|
||||
|
||||
if (is_array($state)) {
|
||||
$mempool = array_merge($mempool, $state);
|
||||
|
||||
@@ -21,9 +21,7 @@ if (count($mempools)) {
|
||||
foreach ($mempools as $mempool) {
|
||||
if ($config['memcached']['enable'] === true) {
|
||||
$state = $memcache->get('mempool-'.$mempool['mempool_id'].'-state');
|
||||
if ($debug) {
|
||||
print_r($state);
|
||||
}
|
||||
d_echo($state);
|
||||
|
||||
if (is_array($state)) {
|
||||
$mempool = array_merge($mempool, $state);
|
||||
|
||||
@@ -8,9 +8,7 @@ $port = dbFetchRow('SELECT * FROM `ports` WHERE `port_id` = ?', array($vars['por
|
||||
|
||||
if ($config['memcached']['enable'] === true) {
|
||||
$state = $memcache->get('port-'.$port['port_id'].'-state');
|
||||
if ($debug) {
|
||||
print_r($state);
|
||||
}
|
||||
d_echo($state);
|
||||
|
||||
if (is_array($state)) {
|
||||
$port = array_merge($port, $state);
|
||||
|
||||
@@ -138,9 +138,7 @@ else {
|
||||
foreach ($ports as $port) {
|
||||
if ($config['memcached']['enable'] === true) {
|
||||
$state = $memcache->get('port-'.$port['port_id'].'-state');
|
||||
if ($debug) {
|
||||
print_r($state);
|
||||
}
|
||||
d_echo($state);
|
||||
|
||||
if (is_array($state)) {
|
||||
$port = array_merge($port, $state);
|
||||
|
||||
Reference in New Issue
Block a user