|
Temporary fix (was the best I could come up with, I'm sure the developers will have a better, more permanent solution:
This seems to work, but it introduces a temporary variable, and makes the code a little heavier:
if ($this->params->get('employment_information_available','1') == '1') { $availTemp = ''; $this->application->monday=='1' ? $availTemp.='Monday, ':''; $this->application->tuesday=='1' ? $availTemp.='Tuesday, ':''; $this->application->wednesday=='1' ? $availTemp.='Wednesday, ':''; $this->application->thursday=='1' ? $availTemp.='Thursday, ':''; $this->application->friday=='1' ? $availTemp.= 'Friday, ':''; $this->application->saturday=='1' ? $availTemp.='Saturday, ':''; $this->application->sunday=='1' ? $availTemp.='Sunday':''; $pdf->outCombo(JTEXT::_('AVAILABLE'),$availTemp); }
This gives me what I needed, except it doesn't evaluate the spaces and commas very well. For some reason it wasn't liking the space at the end of the ternary argument, or the string of them all together. Dunno. |