Author: Lars Michelsen <[email protected]>
Date: Wed Apr 10 10:29:09 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Apr 10 10:29:09 2013 +0200
FIX: Fixed "Undefined index" error when changing backend_id of maps
---
ChangeLog | 3 +++
share/server/core/classes/GlobalMapCfg.php | 4 +++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 725bb92..7072329 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
Automap:
* FIX: Added missing program restarted check to invalidate chaches
+Frontend:
+ * FIX: Fixed "Undefined index" error when changing backend_id of maps
+
1.7.7
Core:
* Implemented "on demand" maps. Maps which only need a basic configuration
diff --git a/share/server/core/classes/GlobalMapCfg.php
b/share/server/core/classes/GlobalMapCfg.php
index 227b83d..9f5afec 100644
--- a/share/server/core/classes/GlobalMapCfg.php
+++ b/share/server/core/classes/GlobalMapCfg.php
@@ -611,7 +611,9 @@ class GlobalMapCfg {
if(isset($params['sources'])) {
$keys = array();
foreach($params['sources'] AS $source) {
- $keys = array_merge($keys, self::$viewParams[$source]);
+ if($source != '') {
+ $keys = array_merge($keys, self::$viewParams[$source]);
+ }
}
foreach($keys AS $key) {
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins