|
From: Benjamin C. <bc...@us...> - 2004-08-23 13:09:42
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15182 Modified Files: Tag: htmltemplates include.php Log Message: Fixes bug #990887 - Redefinition of constants. Index: include.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/include.php,v retrieving revision 1.126.4.9 retrieving revision 1.126.4.10 diff -u -r1.126.4.9 -r1.126.4.10 --- include.php 3 Jul 2004 13:08:42 -0000 1.126.4.9 +++ include.php 23 Aug 2004 13:09:15 -0000 1.126.4.10 @@ -60,7 +60,7 @@ // Set up the configuration variables $rs = $db->query('select varname, varvalue from '.TBL_CONFIGURATION); while (list($k, $v) = $rs->fetchRow(DB_FETCHMODE_ORDERED)) { - define($k, $v); + if (!defined($k)) define($k, $v); } define('OPEN_BUG_STATUSES', join(', ', $db->getCol("select status_id from " . TBL_STATUS ." where bug_open = 1"))); |