phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: etemplate/inc class.link_widget.inc.php,1.1,1.2


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.link_widget.inc.php,1.1,1.2
Date: Wed, 09 Oct 2002 07:50:48 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv25083

Modified Files:
        class.link_widget.inc.php 
Log Message:
improved handling of empty linklist

Index: class.link_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.link_widget.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** class.link_widget.inc.php   9 Oct 2002 00:32:43 -0000       1.1
--- class.link_widget.inc.php   9 Oct 2002 11:50:46 -0000       1.2
***************
*** 86,94 ****
  
                                $links = $this->link->get_links($app,$id);
!                       /*      if (!count($links))
                                {
                                        $cell = $tmpl->empty_cell();
!                                       return False;
!                               } */
                                $tpl = new 
etemplate('etemplate.link_widget.list');
                                $tpl->data[0]['A'] = $tmpl->data[0]['A'];       
// set width of first col like the tmpl. calling us
--- 86,95 ----
  
                                $links = $this->link->get_links($app,$id);
!                               if (!count($links))
                                {
                                        $cell = $tmpl->empty_cell();
!                                       $value = '';
!                                       return True;
!                               }
                                $tpl = new 
etemplate('etemplate.link_widget.list');
                                $tpl->data[0]['A'] = $tmpl->data[0]['A'];       
// set width of first col like the tmpl. calling us





reply via email to

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