attempt to fix countable bug fix_countable_issue
authorChris Sharp <csharp@georgialibraries.org>
Mon, 21 Mar 2022 20:45:09 +0000 (16:45 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 21 Mar 2022 20:45:09 +0000 (16:45 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
views/baseReport.view.php

index d9acbe3..154c300 100644 (file)
@@ -23,7 +23,7 @@ class baseReportView {
                        $selected = "";
                        if ( isset( $this->defaultValues ) && isset ( $values ) ){
                                if ((isset($this->defaultValues->paramsDecoded->$name) && in_array($values->id, $this->defaultValues->paramsDecoded->$name))
-                               || (count($this->defaultValues)==0 && $values->id==$_SESSION['homeOU'])) {
+                               || if(!is_null($this->defaultValues)) && (count($this->defaultValues)==0 && $values->id==$_SESSION['homeOU'])) {
                                $selected = ' selected ';
                                $selectedValues .= $values->shortname.'&nbsp;&nbsp;<br>';
                                        if (NULL == $firstSelected) $firstSelected = $index;