Hide size of log if logging is disabled

This commit is contained in:
DL6ER
2016-12-15 15:30:18 +01:00
parent a2932c2fd8
commit 994660b6c8

View File

@@ -329,7 +329,7 @@
?>
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Query Logging (size of log <?php echo formatSizeUnits(filesize("/var/log/pihole.log")); ?>)</h3>
<h3 class="box-title">Query Logging<?php if($piHoleLogging) { ?> (size of log <?php echo formatSizeUnits(filesize("/var/log/pihole.log")); ?>)<?php } ?></h3>
</div>
<div class="box-body">
<p>Current status: