Replace the version debug with a single function call (instead of array index and a strlen) so it is more efficient (since it's called on every page).

This commit is contained in:
dave 2006-09-03 21:45:54 +00:00
parent a430aadab3
commit 372c2a55c7

View File

@ -492,8 +492,7 @@ global $config;
<div id="footer">
<?
//we only show the debug session variables if we have an ODD numbered version.
$lastdigit=$config['version'][strlen($config['version'])-1];
if($lastdigit%2!=0)
if(substr($config['version'], -1) % 2 != 0)
{
echo "DEBUG:";
print_r($_SESSION);