Changeset 18 for types/GPS.php
- Timestamp:
- Oct 21, 2008, 4:15:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/GPS.php
r17 r18 20 20 global $Database; 21 21 22 $DbResult = $Database->query('SELECT * FROM `SystemGPS` WHERE `Id`='.$Item['Value']); 23 if($DbResult->num_rows > 0) 22 if($Item['Value'] != '') 24 23 { 25 $DbRow = $DbResult->fetch_assoc(); 24 $DbResult = $Database->query('SELECT * FROM `SystemGPS` WHERE `Id`='.$Item['Value']); 25 if($DbResult->num_rows > 0) 26 { 27 $DbRow = $DbResult->fetch_assoc(); 28 } else $DbRow = array('Longitude' => 0, 'Latitude' => 0); 26 29 } else $DbRow = array('Longitude' => 0, 'Latitude' => 0); 27 30 $Value = TypeGPSExplode($DbRow['Latitude']);
Note:
See TracChangeset
for help on using the changeset viewer.