From f7cef9dcd80f4f00091e05e5a25d1f3d67139441 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 13 Feb 2014 10:57:41 +0100 Subject: [PATCH] Fix bogus reference in SignedMaps when globals.environment is not set --- lib/cartodb/signed_maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/signed_maps.js b/lib/cartodb/signed_maps.js index d8014f1a..6931337f 100644 --- a/lib/cartodb/signed_maps.js +++ b/lib/cartodb/signed_maps.js @@ -2,7 +2,7 @@ var crypto = require('crypto'); var Step = require('step'); var _ = require('underscore'); -var debug = global.environment.debug; +var debug = global.environment ? global.environment.debug : undefined; // Class handling map signatures and user certificates //