Skip to content

Commit

Permalink
fixed bug #26482: \ilObjSurvey::checkConstraint: count(): Parameter m…
Browse files Browse the repository at this point in the history
…ust be an array or an object that implements Countable
  • Loading branch information
alex40724 committed Dec 11, 2019
1 parent 6d1ab57 commit 78312b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Survey/classes/class.ilObjSurvey.php
Expand Up @@ -3033,7 +3033,7 @@ public function getLastActivePage($active_id)
*/
public function checkConstraint($constraint_data, $working_data)
{
if (count($working_data) == 0) {
if (!is_array($working_data) || count($working_data) == 0) {
return 0;
}

Expand Down
Expand Up @@ -80,7 +80,7 @@ public static function isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_ob
public function render(array &$a_html, $a_parent_gui)
{
$lng = $this->lng;

$lng->loadLanguageModule("tagging");

$all_tags = $this->getSubTreeTags();
Expand Down

0 comments on commit 78312b7

Please sign in to comment.