Revision: 9802
http://sourceforge.net/p/phpwiki/code/9802
Author: vargenau
Date: 2016-02-11 20:05:46 +0000 (Thu, 11 Feb 2016)
Log Message:
-----------
Fix preg_match
Modified Paths:
--------------
trunk/lib/phpweather-2.2.2/phpweather.php
Modified: trunk/lib/phpweather-2.2.2/phpweather.php
===================================================================
--- trunk/lib/phpweather-2.2.2/phpweather.php 2016-02-11 18:12:10 UTC (rev 9801)
+++ trunk/lib/phpweather-2.2.2/phpweather.php 2016-02-11 20:05:46 UTC (rev 9802)
@@ -609,7 +609,7 @@
$decoded_metar['precipitation']['mm_24h'] =
number_format($regs[1]*0.254, 2, '.', '');
}
- } elseif (preg_match('/^4/([0-9]{3})/', $part, $regs)) {
+ } elseif (preg_match('#^4/([0-9]{3})#', $part, $regs)) {
/*
* Snow depth in inches
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|