Guest User

Untitled

a guest
Dec 8th, 2010
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. 36,38c36,47
  2. < $data[self::getFieldName( $contentClassAttribute, 'longitude' )] = $longitude;
  3. < $data[self::getFieldName( $contentClassAttribute, 'latitude' )] = $latitude;
  4. < $data[self::getFieldName( $contentClassAttribute, 'coordinates' )] = $longitude . ',' . $latitude;
  5. ---
  6. > if(strlen($longitude) > 0 && strlen($latitude) > 0)
  7. > {
  8. > $data[self::getFieldName( $contentClassAttribute, 'longitude' )] = $longitude;
  9. > $data[self::getFieldName( $contentClassAttribute, 'latitude' )] = $latitude;
  10. > $data[self::getFieldName( $contentClassAttribute, 'coordinates' )] = $longitude . ',' . $latitude;
  11. > }
  12. > else
  13. > {
  14. > $data[self::getFieldName( $contentClassAttribute, 'longitude' )] = 0;
  15. > $data[self::getFieldName( $contentClassAttribute, 'latitude' )] = 0;
  16. > $data[self::getFieldName( $contentClassAttribute, 'coordinates' )] = '0,0';
  17. > }
Advertisement
Add Comment
Please, Sign In to add comment