Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
09 Aug 2002 03:10:58postnuke_official/html/includespnAPI.php,1.152,1.153Gary Mitchell
 correct insert into module_vars table - was not using GenID function to set sequence number

Update of /home/cvsroot/postnuke_official/html/includes
In directory ns7.hostnuke.net:/tmp/cvs-serv17138

Modified Files:
	pnAPI.php 
Log Message:
correct insert into module_vars table - was not using GenID function to set sequence number


Index: pnAPI.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/includes/pnAPI.php,v
retrieving revision 1.152
retrieving revision 1.153
diff -C2 -d -r1.152 -r1.153
*** pnAPI.php	28 Jul 2002 15:51:15 -0000	1.152
--- pnAPI.php	9 Aug 2002 03:10:56 -0000	1.153
***************
*** 262,270 ****
           * Insert
           */
          $query = "INSERT INTO $table
!                   (pn_modname,
                     pn_name,
                     pn_value)
!                   VALUES ('" . pnVarPrepForStore('base') . "',
                            '" . pnVarPrepForStore($name) . "',
                            '" . pnVarPrepForStore(serialize($value)). "')";
--- 262,273 ----
           * Insert
           */
+         $seq_id = $dbconn->GenId($table);
          $query = "INSERT INTO $table
!                   (pn_id,
!                    pn_modname,
                     pn_name,
                     pn_value)
!                   VALUES ('$seq_id',
!                           '" . pnVarPrepForStore('base') . "',
                            '" . pnVarPrepForStore($name) . "',
                            '" . pnVarPrepForStore(serialize($value)). "')";


Directory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3