diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 62330cdb1a..23f32cafaa 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -165,7 +165,7 @@ js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate); $hasCustomSeverity = false; foreach($lang->bug->severityList as $severityKey => $severityValue) { - if(!empty($severityKey) and ($severityKey != $severityValue or strlen($severityKey) != strlen($severityValue))) + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) { $hasCustomSeverity = true; break; @@ -190,7 +190,7 @@ js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate); $hasCustomPri = false; foreach($lang->bug->priList as $priKey => $priValue) { - if(!empty($priKey) and ($priKey != $priValue or strlen($priKey) != strlen($priValue))) + if(!empty($priKey) and (string)$priKey != (string)$priValue) { $hasCustomPri = true; break; diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 01921eb89b..0f1e3eec71 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -113,7 +113,7 @@ $hasCustomPri = false; foreach($lang->story->priList as $priKey => $priValue) { - if(!empty($priKey) and ($priKey != $priValue or strlen($priKey) != strlen($priValue))) + if(!empty($priKey) and (string)$priKey != (string)$priValue) { $hasCustomPri = true; break; diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index 5863db6299..0ac596761c 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -43,7 +43,7 @@ assignedTo, "class='form-control chosen'");?> - + @@ -90,7 +90,7 @@ $hasCustomPri = false; foreach($lang->task->priList as $priKey => $priValue) { - if(!empty($priKey) and ($priKey != $priValue or strlen($priKey) != strlen($priValue))) + if(!empty($priKey) and (string)$priKey != (string)$priValue) { $hasCustomPri = true; break; diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php index 3c30db426b..e972abb32a 100644 --- a/module/testcase/view/create.html.php +++ b/module/testcase/view/create.html.php @@ -101,7 +101,7 @@ $hasCustomPri = false; foreach($lang->testcase->priList as $priKey => $priValue) { - if(!empty($priKey) and ($priKey != $priValue or strlen($priKey) != strlen($priValue))) + if(!empty($priKey) and (string)$priKey != (string)$priValue) { $hasCustomPri = true; break; diff --git a/module/testsuite/view/createcase.html.php b/module/testsuite/view/createcase.html.php index 4f5d40a6f5..3291cbaa3a 100644 --- a/module/testsuite/view/createcase.html.php +++ b/module/testsuite/view/createcase.html.php @@ -78,7 +78,7 @@ $hasCustomPri = false; foreach($lang->testcase->priList as $priKey => $priValue) { - if(!empty($priKey) and ($priKey != $priValue or strlen($priKey) != strlen($priValue))) + if(!empty($priKey) and (string)$priKey != (string)$priValue) { $hasCustomPri = true; break;