summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/hooks/config-tgz.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/hooks/config-tgz.inc.php')
-rw-r--r--modules-available/statistics/hooks/config-tgz.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/hooks/config-tgz.inc.php b/modules-available/statistics/hooks/config-tgz.inc.php
index 8dffbff6..0a43e115 100644
--- a/modules-available/statistics/hooks/config-tgz.inc.php
+++ b/modules-available/statistics/hooks/config-tgz.inc.php
@@ -9,7 +9,7 @@ $res = Database::simpleQuery('SELECT h.hwname FROM statistic_hw h'
if ($res !== false) { // CHeck this in case we're running on old DB during update
$content = '';
- while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
+ foreach ($res as $row) {
$content .= $row['hwname'] . "=beamer\n";
}