diff --git a/resources/macros/macros.php b/resources/macros/macros.php index c5c7824edc..72d4a404d4 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -37,7 +37,13 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class = // Pull the autoglossonym array from the localizations translation file foreach (trans('localizations.countries') as $abbr => $country) { - $select .= ' '; + + // We have to handle it this way to handle deprecication warnings since you can't strtoupper on null + if ($abbr!='') { + $abbr = strtoupper($abbr); + } + + $select .= ' '; } $select .= '';