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_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();





reply via email to

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