From 3786ebc33ed40a5d851b7f8a0705a0e8fc43dec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Barz?= Date: Sat, 22 Jul 2017 15:57:24 +0200 Subject: [PATCH] Fixed unquoted string array index in viewlog.php `$CONF[page_size]` was working, but throwing E_NOTICE, so I propose changing it to `$CONF['page_size']`. --- viewlog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewlog.php b/viewlog.php index 287baa25..02054839 100644 --- a/viewlog.php +++ b/viewlog.php @@ -60,9 +60,9 @@ $tLog = array(); if ($error != 1) { $table_log = table_by_key('log'); - $query = "SELECT timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT " . intval($CONF[page_size]); + $query = "SELECT timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT " . intval($CONF['page_size']); if (db_pgsql()) { - $query = "SELECT extract(epoch from timestamp) as timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT " . intval($CONF[page_size]); + $query = "SELECT extract(epoch from timestamp) as timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT " . intval($CONF['page_size']); } $result=db_query($query); if ($result['rows'] > 0)