Changed sequence names to a standard <table>_<field>_seq form.
[lhc/web/wiklou.git] / includes / Category.php
index ba52b94..e0a3563 100644 (file)
@@ -246,7 +246,7 @@ class Category {
                } else {
                        # Let's be sure that the row exists in the table.  We don't need to
                        # do this if we got the row from the table in initialization!
-                       $seqVal = $dbw->nextSequenceValue( 'category_id_seq' );
+                       $seqVal = $dbw->nextSequenceValue( 'category_cat_id_seq' );
                        $dbw->insert(
                                'category',
                                array(  'cat_id' => $seqVal,