From: Zach Copley Date: Wed, 16 Mar 2011 07:50:43 +0000 (-0700) Subject: Extended profile - don't check end date if experience entry has current checked X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=974d0c48f6234a99b0d28f6c54033434cace877c;p=quix0rs-gnu-social.git Extended profile - don't check end date if experience entry has current checked --- diff --git a/plugins/ExtendedProfile/profiledetailsettingsaction.php b/plugins/ExtendedProfile/profiledetailsettingsaction.php index 01a8fa9c7b..13bf43b927 100644 --- a/plugins/ExtendedProfile/profiledetailsettingsaction.php +++ b/plugins/ExtendedProfile/profiledetailsettingsaction.php @@ -288,7 +288,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction $expArray[] = array( 'company' => $company, 'start' => $this->parseDate('Start', $start, true), - 'end' => $this->parseDate('End', $end, true), + 'end' => ($current == 'false') ? $this->parseDate('End', $end, true) : null, 'current' => ($current == 'false') ? false : true ); }