[TEP-COMMIT] CVS: catalog/catalog index.php,1.4,1.5

Mark Evans <[email protected]>
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Update of /cvsroot/tep/catalog/catalog
In directory sc8-pr-cvs1:/tmp/cvs-serv8563

Modified Files:
	index.php 
Log Message:
Fix strpos call as reported in bug 1458

Index: index.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- index.php	17 Nov 2003 21:04:11 -0000	1.4
+++ index.php	10 Jan 2004 20:59:53 -0000	1.5
@@ -77,7 +77,7 @@
             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
               <tr>
 <?php
-    if (isset($cPath) && strpos('_', $cPath)) {
+    if (isset($cPath) && strpos($cPath, '_')) {
 // check to see if there are deeper categories within the current category
       $category_links = array_reverse($cPath_array);
       for($i=0, $n=sizeof($category_links); $i<$n; $i++) {



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.