From 3c0cd34071ace5ccdd4b7a8cf2ac6ca3f45272af Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 2 Apr 2020 17:54:40 -0400 Subject: [PATCH] Trim list_to_assoc items --- app/helpers.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/helpers.php b/app/helpers.php index 592a5be8..48798da7 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -84,6 +84,9 @@ if (!function_exists('list_to_assoc')) { $title = $item; } + $item = trim($item); + $title = trim($title); + $ret[$item] = $title; }