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:
@@ -95,7 +95,7 @@ function create_limesurvey_questionnaire($title)
|
||||
$isquery = "SELECT sid FROM ".db_table_name('surveys')." WHERE sid=$surveyid";
|
||||
$isresult = $ldb->Execute($isquery);
|
||||
}
|
||||
while ($isresult->RecordCount()>0);
|
||||
while (!empty($isresult) && $isresult->RecordCount() > 0);
|
||||
|
||||
$isquery = "INSERT INTO ". LIME_PREFIX ."surveys\n"
|
||||
. "(sid, owner_id, admin, active, useexpiry, expires, "
|
||||
|
||||
Reference in New Issue
Block a user