Re: BUG: $debugging_ctrl = 'URL'

From: Date: Wed, 15 Aug 2001 13:24:25 +0000
Subject: Re: BUG: $debugging_ctrl = 'URL'
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1335@lists.php.net to get a copy of this message
Yep, that is already fixed for the next release. daniel wrote: > > There is a small bug that occurs when $debugging_ctrl = 'URL'. > > On line 605 of Smarty.class.php it should be changed from: > > if ($this->debugging || ($this->debugging_ctrl == 'URL' > && (!empty($QUERY_STRING) && > strstr('SMARTY_DEBUG',$QUERY_STRING)))) { echo > $this->_generate_debug_output(); } > > to: > > if ($this->debugging || ($this->debugging_ctrl == 'URL' > && (!empty($QUERY_STRING) && > strstr($QUERY_STRING,'SMARTY_DEBUG')))) { echo > $this->_generate_debug_output(); } > > The usage of strstr is strstr(<haystack>,<needle>) and not > strstr(<needle>,<haystack>). > > -- > Daniel Lashua -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#1335) next »