Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 749b2ea2e4fdc52905b1fc9ac77ac92da197cac0 1 parent 3904536
Alexander Wirtz authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 Weather.php
8 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");
}
Please sign in to comment.
Something went wrong with that request. Please try again.