phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] ged/inc class.ged_ui.inc.php


From: Pascal Vilarem
Subject: [Phpgroupware-cvs] ged/inc class.ged_ui.inc.php
Date: Mon, 30 Jul 2007 17:37:34 +0000

CVSROOT:        /sources/phpgroupware
Module name:    ged
Changes by:     Pascal Vilarem <maat>   07/07/30 17:37:34

Modified files:
        inc            : class.ged_ui.inc.php 

Log message:
        fixed : warning no more displayed when $chronos is not set

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ged/inc/class.ged_ui.inc.php?cvsroot=phpgroupware&r1=1.40&r2=1.41

Patches:
Index: class.ged_ui.inc.php
===================================================================
RCS file: /sources/phpgroupware/ged/inc/class.ged_ui.inc.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- class.ged_ui.inc.php        30 Jul 2007 17:12:51 -0000      1.40
+++ class.ged_ui.inc.php        30 Jul 2007 17:37:33 -0000      1.41
@@ -2567,8 +2567,11 @@
                // DONE : use the project name instead of root id
                $this->t->set_var('lang_chrono_title', lang('Chronos for 
project')." ".$this->ged_dm->get_project_name($project_root));
                
+               $chronos=null;
                $chronos=$this->ged_dm->list_chronos($project_root);
                
+               if ( isset($chronos))
+               {
                foreach ( $chronos as $type_id => $type_chronos)
                {
                        $this->t->set_var('chrono_block_handle', "");
@@ -2607,7 +2610,7 @@
                        }
                        $this->t->fp('type_block_handle', 'type_block', True);
                }
-               
+               }
                $this->t->pfp('out', 'chrono_tpl');
        }
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]