[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_db_SO.inc.php,1.4,1
From: |
Patrick Walsh <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_db_SO.inc.php,1.4,1.5 |
Date: |
Sat, 07 Sep 2002 02:19:12 -0400 |
Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv9418/inc
Modified Files:
class.Categories_db_SO.inc.php
Log Message:
fine tuning the category upgrade
Index: class.Categories_db_SO.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Categories_db_SO.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** class.Categories_db_SO.inc.php 7 Sep 2002 05:57:28 -0000 1.4
--- class.Categories_db_SO.inc.php 7 Sep 2002 06:18:58 -0000 1.5
***************
*** 80,83 ****
--- 80,91 ----
$cat_so = CreateObject('sitemgr.Categories_SO');
+ // Make sure the categories table exists
+ $this->db->query('SELECT cat_id FROM
phpgw_sitemgr_categories WHERE 1',__LINE__,__FILE__);
+ if ($this->db->num_rows==0)
+ {
+ // They have no categories entered... nothing
to convert.
+ return '';
+ }
+
$old_cats = $this->getFullCategoryIDList();
$cat_conv = array();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_db_SO.inc.php,1.4,1.5,
Patrick Walsh <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.3,1.4 class.Categories_db_SO.inc.php,1.3,1.4 class.MainMenu_UI.inc.php,1.1.1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: sitemgr/setup tables_current.inc.php,1.4,1.5
- Previous by thread:
[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.3,1.4 class.Categories_db_SO.inc.php,1.3,1.4 class.MainMenu_UI.inc.php,1.1.1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: sitemgr/setup tables_current.inc.php,1.4,1.5
- Index(es):