[Top][All Lists]
[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;
! }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.4.2.3,1.4.2.4,
Michael Totschnig <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property documentation_detail.php,1.1.2.2,1.1.2.3 list_equipment.php,1.4,1.4.2.1 list_equipment_type.php,1.3,1.3.2.1 list_equipment_type_attribute.php,1.3,1.3.2.1
- Next by Date:
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site index.php,1.4.2.2,1.4.2.3
- Previous by thread:
[Phpgroupware-cvs] CVS: property documentation_detail.php,1.1.2.2,1.1.2.3 list_equipment.php,1.4,1.4.2.1 list_equipment_type.php,1.3,1.3.2.1 list_equipment_type_attribute.php,1.3,1.3.2.1
- Next by thread:
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site index.php,1.4.2.2,1.4.2.3
- Index(es):