Module: nagvis
Branch: master
Commit: 6d507456b53e1f43192a4597000751d03fcf5485
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=6d507456b53e1f43192a4597000751d03fcf5485

Author: Lars Michelsen <[email protected]>
Date:   Mon Aug 31 12:11:44 2009 +0200

#90 Fixed warning messages with php 5.3

---

 share/nagvis/includes/classes/NagVisFrontend.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/nagvis/includes/classes/NagVisFrontend.php 
b/share/nagvis/includes/classes/NagVisFrontend.php
index 6cde823..fb0f2b8 100644
--- a/share/nagvis/includes/classes/NagVisFrontend.php
+++ b/share/nagvis/includes/classes/NagVisFrontend.php
@@ -86,7 +86,7 @@ class NagVisFrontend extends GlobalPage {
                $prop['languageRoot'] = 'nagvis';
                
                // Only do this, when a map needs to be displayed
-               if(get_class($this->MAPCFG) != '') {
+               if($this->MAPCFG !== null && get_class($this->MAPCFG) != '') {
                        $prop['allowedUsers'] = 
$this->MAPCFG->getValue('global',0, 'allowed_user');
                        
                        // Load custom (map specific) stylesheets


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to