Revision: 6643
          http://care2002.svn.sourceforge.net/care2002/?rev=6643&view=rev
Author:   tim_schofield
Date:     2010-07-28 12:08:49 +0000 (Wed, 28 Jul 2010)

Log Message:
-----------
Check to see if $_SESSION[sess_user_id] is set before using it

Modified Paths:
--------------
    care2x/branches/gettext/modules/news/includes/inc_news_display_config.php

Modified: 
care2x/branches/gettext/modules/news/includes/inc_news_display_config.php
===================================================================
--- care2x/branches/gettext/modules/news/includes/inc_news_display_config.php   
2010-07-26 17:47:26 UTC (rev 6642)
+++ care2x/branches/gettext/modules/news/includes/inc_news_display_config.php   
2010-07-28 12:08:49 UTC (rev 6643)
@@ -4,7 +4,7 @@
 require_once($root_path.'include/core/class_userconfig.php');
 
 
-if ($_SESSION['sess_user_id']) {
+if (isset($_SESSION['sess_user_id'])) {
     $user_id = $_SESSION['sess_user_id'];
 } else {
     $user_id = $_COOKIE['ck_config'];
@@ -27,4 +27,4 @@
 require_once($root_path.'modules/news/includes/inc_editor_fx.php');
 
 require_once($root_path.'include/helpers/inc_date_format_functions.php');
-?>
\ No newline at end of file
+?>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to