Remove all unneeded if($debug)-statements and replace them with d_echo . html dir..

This commit is contained in:
Mark Schouten
2015-08-20 15:07:28 +02:00
parent 55a2e0423d
commit 4fa88bb928
8 changed files with 11 additions and 32 deletions
+1 -3
View File
@@ -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);
+1 -3
View File
@@ -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);
+1 -3
View File
@@ -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);
+1 -3
View File
@@ -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);