From 47f57e28637e52533344d8b9d4dbe19c4e53b2ee Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 4 Jun 2020 15:13:40 -0400 Subject: [PATCH] Fix Phan error on release branch (#6670) Fixes travis, broken by #6644 --- htdocs/survey.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/survey.php b/htdocs/survey.php index 82dbefd2bc6..4baac3309fc 100644 --- a/htdocs/survey.php +++ b/htdocs/survey.php @@ -125,7 +125,9 @@ function initialize() $this->tpl_data = array( 'nextpage' => $this->NextPageNum, 'prevpage' => $this->PrevPageNum, - 'pageNum' => $pageNum && is_numeric($pageNum) ? $pageNum + 1 : 1, + 'pageNum' => + $pageNum && is_numeric($pageNum) ? + intval($pageNum) + 1 : 1, 'totalPages' => $totalPages, 'key' => $this->key, 'study_title' => $config->getSetting('title'),