phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.4.2.3,


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.4.2.3,1.4.2.4
Date: Mon, 02 Dec 2002 15:11:30 -0500

Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv21757

Modified Files:
      Tag: Version-0_9_14-branch
        class.Categories_BO.inc.php 
Log Message:
make the update of categories conditional on existence of table

Index: class.Categories_BO.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Categories_BO.inc.php,v
retrieving revision 1.4.2.3
retrieving revision 1.4.2.4
diff -C2 -r1.4.2.3 -r1.4.2.4
*** class.Categories_BO.inc.php 25 Nov 2002 23:22:40 -0000      1.4.2.3
--- class.Categories_BO.inc.php 2 Dec 2002 20:11:27 -0000       1.4.2.4
***************
*** 14,18 ****
                {
                        $prefs = CreateObject('sitemgr.sitePreference_SO');
!                       return !$prefs->getPreference('catsupdated');
                }
  
--- 14,35 ----
                {
                        $prefs = CreateObject('sitemgr.sitePreference_SO');
!                       if ($prefs->getPreference('catsupdated'))
!                       {
!                               return False;
!                       }
!                       else
!                       {
!                               // if there is no table 
phpgw_sitemgr_categories we do not need and update
!                               $table_names = 
$GLOBALS['phpgw']->db->table_names();
!                               foreach ($table_names as $table)
!                               {
!                                       if ($table['table_name'] == 
'phpgw_sitemgr_categories')
!                                       {
!                                               return True;
!                                       }
!                               }
!                       $prefs->setPreference('catsupdated','True');
!                       return False;
!                       }
                }
  





reply via email to

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