<?php
/**
- * logger.php
- *
- * SourceForge: Breaking Down the Barriers to Open Source Development
* Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
} else if (isset($form_grp) && is_numeric($form_grp) && $form_grp) {
$log_group=$form_grp;
} else if (isset($group_name) && $group_name) {
- $group =& group_get_object_by_name($group_name);
+ $group = group_get_object_by_name($group_name);
if ($group) {
$log_group=$group->getID();
} else {
'H'));
// store subpage id for analyzing later
- $subpage = @$expl_pathinfo[3];
- $subpage2 = @$expl_pathinfo[4];
+ $subpage = isset($expl_pathinfo[3])?$expl_pathinfo[3]:'';
+ $subpage2 = isset($expl_pathinfo[4]) ? $expl_pathinfo[4] : '';
//set up the group_id
$group_id=db_result($res_grp,0,'group_id');
//set up a foundry object for reference all over the place
if ($group_id) {
- $grp =& group_get_object($group_id,$res_grp);
+ $grp = group_get_object($group_id,$res_grp);
if ($grp) {
//this is a project - so set up the project var properly
$project =& $grp;
$group_id=db_result($res_grp,0,'group_id');
//set up a foundry object for reference all over the place
if ($group_id) {
- $grp =& group_get_object($group_id,$res_grp);
+ $grp = group_get_object($group_id,$res_grp);
if ($grp) {
//this is a project - so set up the project var properly
$project =& $grp;