Update of /cvsroot/phpweather/phpweather/config
In directory sc8-pr-cvs1:/tmp/cvs-serv2054
Modified Files:
make_db.php
Log Message:
More fixes from Andrew Simpson (andrewsimpson). This closes #724856.
Index: make_db.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_db.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- make_db.php 29 May 2002 20:42:56 -0000 1.3
+++ make_db.php 22 Apr 2003 20:49:26 -0000 1.4
@@ -45,7 +45,7 @@
if (!empty($HTTP_POST_VARS['do_sql'])) {
echo "<blockquote>\n";
- define('PHPWEATHER_BASE_DIR', dirname(__FILE__) . '/..');
+ define('PHPWEATHER_BASE_DIR', realpath(dirname(__FILE__) . '/..'));
require_once(PHPWEATHER_BASE_DIR . '/db_layer.php');
$db = new db_layer();
@@ -65,7 +65,7 @@
$countries[$cc] = $country;
$num_countries++;
//echo "<p>Now processing stations in $country.</p>\n";
- } elseif ($row[0] != '#' && $row != '') {
+ } elseif (!empty($row) && $row[0] != '#') {
list($icao, $name) = explode(';', $row, 2);
$num_rows++;
$data[$cc][$icao] = $name;
|