- statistik.class.php, fixed error: only non-published statistiken were loaded by default, now all are loaded

This commit is contained in:
alex
2019-08-07 16:49:57 +02:00
parent 7ac68bb66c
commit 467c8b60cc
+2 -2
View File
@@ -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;';