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

This commit is contained in:
Mark Schouten
2015-08-20 15:59:43 +02:00
parent 4fa88bb928
commit 677a4f3f5f
89 changed files with 192 additions and 561 deletions

View File

@@ -9,16 +9,12 @@ require 'includes/include-dir.inc.php';
// Remove memory pools which weren't redetected here
$sql = "SELECT * FROM `mempools` WHERE `device_id` = '".$device['device_id']."'";
if ($debug) {
print_r($valid_mempool);
}
d_echo($valid_mempool);
foreach (dbFetchRows($sql) as $test_mempool) {
$mempool_index = $test_mempool['mempool_index'];
$mempool_type = $test_mempool['mempool_type'];
if ($debug) {
echo $mempool_index.' -> '.$mempool_type."\n";
}
d_echo($mempool_index.' -> '.$mempool_type."\n");
if (!$valid_mempool[$mempool_type][$mempool_index]) {
echo '-';