aboutsummaryrefslogtreecommitdiffstats
path: root/nextcloud_munin.php
diff options
context:
space:
mode:
authorM.Gergő2020-04-07 00:21:24 +0200
committerM.Gergő2020-04-07 00:21:24 +0200
commiteee3b4fbded1c797adb788e8710300e0b2a9c11a (patch)
tree0091f5e988289c2603452af6655b0e3184e5ac8b /nextcloud_munin.php
parentf90344c9dc1bac3ea4d4f6ebeb3c81025700227e (diff)
downloadmunin-nextcloud-eee3b4fbded1c797adb788e8710300e0b2a9c11a.tar.gz
munin-nextcloud-eee3b4fbded1c797adb788e8710300e0b2a9c11a.zip
Munin graphs for Nextcloud
Diffstat (limited to 'nextcloud_munin.php')
-rw-r--r--nextcloud_munin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/nextcloud_munin.php b/nextcloud_munin.php
index 8675235..e0423f4 100644
--- a/nextcloud_munin.php
+++ b/nextcloud_munin.php
@@ -55,8 +55,8 @@ $time_req = time()-60*$set['diff_minutes'];
$ret['data']['users_oos']['info'] = "Clients on other OS";
mysqli_set_charset($l, "utf8");
- $r = mysqli_query($l, "SELECT * FROM ".mysqli_real_escape($l, $set['db_db']).".".mysqli_real_escape($l, $set['db_prefix'])."authtoken
- WHERE `last_activity` >= ".mysqli_real_escape($l, $time_req)."
+ $r = mysqli_query($l, "SELECT * FROM ".mysqli_real_escape_string($l, $set['db_db']).".".mysqli_real_escape_string($l, $set['db_prefix'])."authtoken
+ WHERE `last_activity` >= ".mysqli_real_escape_string($l, $time_req)."
ORDER BY `last_activity` DESC ;"
);
while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) {