Skip to content

Commit 410b8c5

Browse files
committed
fix call to get_class
1 parent 41352ab commit 410b8c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

php/libraries/NDB_BVL_Instrument.class.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2505,7 +2505,9 @@ abstract class NDB_BVL_Instrument extends NDB_Page
25052505
}
25062506
}
25072507
} else if ($element['type'] === "date") {
2508-
if (get_class($this->form) === 'LorisForm') {
2508+
if ($this->form !== null
2509+
&& get_class($this->form) === 'LorisForm'
2510+
) {
25092511
$element['options'] = [
25102512
'mindate' => "1990-01-01",
25112513
'maxdate' => "2000-12-31",

0 commit comments

Comments
 (0)