2
0
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:
azammitdcarf
2008-11-14 00:58:44 +00:00
parent 26bc2b866c
commit 0976fe62ee
7 changed files with 37 additions and 16 deletions

View File

@@ -62,8 +62,10 @@ function vq($operator_id,$questionnaire_id)
$vq = $db->Execute($sql);
return $vq->RecordCount();
if ($vq)
return $vq->RecordCount();
else
return 0;
}
/**