[dev] Agora patch

Carlos Pedrinaci cpedrinaci at yahoo.es
Thu Mar 18 14:48:13 PST 2004


I just noticed Agora was writing "Forum Modified" when
you create a new Forum.

Carlos

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
-------------- next part --------------
Index: Forums.php
===================================================================
RCS file: /repository/agora/lib/Forums.php,v
retrieving revision 1.34
diff -u -r1.34 Forums.php
--- Forums.php	28 Jan 2004 13:19:13 -0000	1.34
+++ Forums.php	18 Mar 2004 22:44:06 -0000
@@ -191,7 +191,7 @@
         if (empty($info['forum_id'])) {
             /* New forum, add the category object. */
             $result = $this->_forums->add($forum);
-            $info['forum_id'] = $this->_forums->getId($forum);
+            return $this->_forums->getId($forum);
         } else {
             /* Existing forum, first save the category data. */
             $this->_forums->updateData($forum);
@@ -215,9 +215,8 @@
                     return $rename;
                 }
             }
+            return $info['forum_id'];
         }
-
-        return $info['forum_id'];
     }
 
     function deleteForum($forum_id)


More information about the dev mailing list