Skip to content

Commit

Permalink
Allow data handler instantiation without real form, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jegelstaff committed Dec 20, 2024
1 parent fe0d801 commit 479d8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/formulize/class/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class formulizeDataHandler {
var $dataTypeMap; // an array of field, data type pairs, generated when data is written to the DB

// $fid must be an id
function __construct($fid){
function __construct($fid=null){
$form_handler = xoops_getmodulehandler('forms', 'formulize');
if(is_object($formObject = $form_handler->get($fid))) {
$this->fid = intval($fid);
Expand Down

0 comments on commit 479d8a1

Please sign in to comment.