CVS: phpweather/output pw_text.php,1.7,1.8
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-03-28 21:18:37
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv27336 Modified Files: pw_text.php Log Message: Bad - we should never output anything directly from this method. Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- pw_text.php 28 Mar 2002 15:49:09 -0000 1.7 +++ pw_text.php 28 Mar 2002 21:18:29 -0000 1.8 @@ -998,11 +998,10 @@ * if the metar is empty. */ - printf($this->strings['no_data'], - $this->properties['mark_begin'], - $location, - $this->properties['mark_end']); - return 1; + return sprintf($this->strings['no_data'], + $this->properties['mark_begin'], + $location, + $this->properties['mark_end']); } /**************** |