Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 36,38c36,47
- < $data[self::getFieldName( $contentClassAttribute, 'longitude' )] = $longitude;
- < $data[self::getFieldName( $contentClassAttribute, 'latitude' )] = $latitude;
- < $data[self::getFieldName( $contentClassAttribute, 'coordinates' )] = $longitude . ',' . $latitude;
- ---
- > if(strlen($longitude) > 0 && strlen($latitude) > 0)
- > {
- > $data[self::getFieldName( $contentClassAttribute, 'longitude' )] = $longitude;
- > $data[self::getFieldName( $contentClassAttribute, 'latitude' )] = $latitude;
- > $data[self::getFieldName( $contentClassAttribute, 'coordinates' )] = $longitude . ',' . $latitude;
- > }
- > else
- > {
- > $data[self::getFieldName( $contentClassAttribute, 'longitude' )] = 0;
- > $data[self::getFieldName( $contentClassAttribute, 'latitude' )] = 0;
- > $data[self::getFieldName( $contentClassAttribute, 'coordinates' )] = '0,0';
- > }
Advertisement
Add Comment
Please, Sign In to add comment