mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
checked for existence of result set before applying RecordCount method
New questionnaire form has larger text boxes for entering data - and hides entry when rs not required
This commit is contained in:
@@ -62,8 +62,10 @@ function vq($operator_id,$outcome_type_id)
|
||||
|
||||
$vq = $db->Execute($sql);
|
||||
|
||||
return $vq->RecordCount();
|
||||
|
||||
if ($vq)
|
||||
return $vq->RecordCount();
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user