Permalink
Browse files

o Removed ENOTICE for multiple defines

git-svn-id: http://svn.php.net/repository/pear/packages/Services_Weather/trunk@144489 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 3904536 commit 749b2ea2e4fdc52905b1fc9ac77ac92da197cac0 Alexander Wirtz committed Nov 17, 2003
Showing with 6 additions and 2 deletions.
  1. +6 −2 Weather.php
View
@@ -103,10 +103,14 @@ function &service($service, $options = null)
// Check for debugging-mode and set stuff accordingly
if (is_array($options) && isset($options["debug"]) && $options["debug"] >= 2) {
- define("SERVICES_WEATHER_DEBUG", true);
+ if (!defined("SERVICES_WEATHER_DEBUG")) {
+ define("SERVICES_WEATHER_DEBUG", true);
+ }
include_once("Services/Weather/".$service.".php");
} else {
- define("SERVICES_WEATHER_DEBUG", false);
+ if (!defined("SERVICES_WEATHER_DEBUG")) {
+ define("SERVICES_WEATHER_DEBUG", false);
+ }
@include_once("Services/Weather/".$service.".php");
}

0 comments on commit 749b2ea

Please sign in to comment.