|
From: OryNider <ory...@us...> - 2008-02-21 16:12:31
|
Update of /cvsroot/mxbb/mx_glance In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6783 Modified Files: mx_glance.php Log Message: fix Index: mx_glance.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** mx_glance.php 5 Feb 2008 04:39:10 -0000 1.13 --- mx_glance.php 21 Feb 2008 16:12:23 -0000 1.14 *************** *** 174,180 **** if (!(PORTAL_BACKEND == 'phpbb3')) { ! if ( !function_exists( 'obtain_word_list' ) ) { ! function obtain_word_list(&$orig_word, &$replacement_word) { global $db; --- 174,180 ---- if (!(PORTAL_BACKEND == 'phpbb3')) { ! if ( !function_exists('obtain_word_list') ) { ! function glance_obtain_word_list(&$orig_word, &$replacement_word) { global $db; *************** *** 192,204 **** $replacement_word[] = $row['replacement']; } ! while ( $row = $db->sql_fetchrow($result) ); } return true; } } - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); } else --- 192,210 ---- $replacement_word[] = $row['replacement']; } ! while ($row = $db->sql_fetchrow($result)); } return true; } + $orig_word = array(); + $replacement_word = array(); + glance_obtain_word_list($orig_word, $replacement_word); + } + else + { + $orig_word = array(); + $replacement_word = array(); + obtain_word_list($orig_word, $replacement_word); } } else |