Author: Lars Michelsen <[email protected]>
Date: Mon Mar 28 23:43:43 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Mon Mar 28 23:43:43 2011 +0200
Fixed object modification code
---
share/server/core/classes/GlobalMapCfg.php | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/share/server/core/classes/GlobalMapCfg.php
b/share/server/core/classes/GlobalMapCfg.php
index db63e78..9420889 100644
--- a/share/server/core/classes/GlobalMapCfg.php
+++ b/share/server/core/classes/GlobalMapCfg.php
@@ -773,11 +773,21 @@ class GlobalMapCfg {
'match' => MATCH_WEATHER_COLORS,
'depends_on' => 'view_type',
'depends_value' => 'line'),
- 'gadget_url' => Array('must' => 0,
- 'match' => MATCH_STRING_URL,
- 'field_type' => 'dropdown',
- 'depends_on' => 'view_type',
- 'depends_value' => 'gadget'),
+ 'gadget_url' => Array(
+ 'must' => 0,
+ 'match' =>
MATCH_STRING_URL,
+ 'field_type' => 'dropdown',
+ 'depends_on' => 'view_type',
+ 'depends_value' => 'gadget'
+ ),
+ 'gadget_type' => Array(
+ 'must' => 0,
+ 'match' =>
MATCH_GADGET_TYPE,
+ 'field_type' => 'dropdown',
+ 'depends_on' => 'view_type',
+ 'depends_value' => 'gadget',
+ 'default' => 'img'
+ ),
'gadget_scale' => Array('must' => 0,
'default' => 100,
'match' => MATCH_INTEGER,
@@ -2244,7 +2254,7 @@ class GlobalMapCfg {
public function storeUpdateElement($id) {
$type = $this->mapConfig[$id]['type'];
- if($id == 0)
+ if(is_numeric($id) && $id == 0)
list($inObj, $start, $end) =
$this->getObjectLinesByNum(0);
else
list($inObj, $start, $end) =
$this->getObjectLinesById($id);
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and publish
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins