From: Roland Hieber Date: Sat, 28 Feb 2009 08:31:05 +0000 (+0100) Subject: only hidden messages were shown to non-admin users in erErrorReportManager::readFromSQL() X-Git-Tag: REL_9.03.01~1 X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/commitdiff_plain/3f6e109ede4c6190f46569a0c5df7bde2efe0353 only hidden messages were shown to non-admin users in erErrorReportManager::readFromSQL() --- diff --git a/inc/class_erErrorReportManager.inc b/inc/class_erErrorReportManager.inc index 4e3a127..cf15e03 100644 --- a/inc/class_erErrorReportManager.inc +++ b/inc/class_erErrorReportManager.inc @@ -264,7 +264,7 @@ class erErrorReportManager { } else { $strWhereClause = "WHERE ".((trim($strWhere) == "") ? "" : "$strWhere AND ").sprintf("((er_act = '%s') or (er_hidden IS NULL OR ". - " er_hidden))", $_SESSION["act"]); + " NOT er_hidden))", $_SESSION["act"]); } $strSortClause = $this->buildOrderByClause($arcSort);