Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Dec 19, 2019
1 parent b2e6285 commit 671597b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/cck_field/jform_calendar/jform_calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,8 @@ public function onCCK_FieldPrepareSearch( &$field, $value = '', &$config = array
// Prepare
self::onCCK_FieldPrepareForm( $field, $value, $config, $inherit, $return );

if ( (int)$field->value > 0 && isset( $modify ) ) {
if ( (int)$field->value > 0 && isset( $modify ) && $modify ) {
$field->value = JFactory::getDate( $field->value )->modify( $modify )->toSql();

}

// Return
Expand Down

0 comments on commit 671597b

Please sign in to comment.