From 467c8b60cc8823f68f964be800caf405745d78f0 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 7 Aug 2019 16:49:57 +0200 Subject: [PATCH] - statistik.class.php, fixed error: only non-published statistiken were loaded by default, now all are loaded --- include/statistik.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/statistik.class.php b/include/statistik.class.php index c9615d557..89ae1c752 100644 --- a/include/statistik.class.php +++ b/include/statistik.class.php @@ -164,9 +164,9 @@ class statistik extends basis_db public function getGruppe($gruppe,$publish=null) { $qry = "SELECT * FROM public.tbl_statistik WHERE gruppe=".$this->db_add_param($gruppe); - if ($publish==true) + if ($publish===true) $qry.=' AND publish '; - elseif ($publish==false) + elseif ($publish===false) $qry.=' AND NOT publish '; $qry.=' ORDER BY bezeichnung;';