]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Extended profile - don't check end date if experience entry has current checked
authorZach Copley <zach@status.net>
Wed, 16 Mar 2011 07:50:43 +0000 (00:50 -0700)
committerZach Copley <zach@status.net>
Wed, 16 Mar 2011 07:50:43 +0000 (00:50 -0700)
plugins/ExtendedProfile/profiledetailsettingsaction.php

index 01a8fa9c7bdba5a86001e013d86badbdc4450168..13bf43b927d457e2f0e7b216357ef5576fe6a610 100644 (file)
@@ -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
                 );
             }