cvs: smarty /libs Smarty.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1106518755@cvsserver>
messju		Sun Jan 23 17:19:15 2005 EDT

  Modified files:              
    /smarty/libs	Smarty.class.php 
  Log:
  replaced ? true : false and removed intermediate $_cookie_var in the
  handling of the SMARTY_DEBUG-cookie
  
  
  
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.508&r2=1.509&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.508 smarty/libs/Smarty.class.php:1.509
--- smarty/libs/Smarty.class.php:1.508	Fri Jan 21 12:46:14 2005
+++ smarty/libs/Smarty.class.php	Sun Jan 23 17:19:15 2005
@@ -30,7 +30,7 @@
  * @version 2.6.6-dev
  */
 
-/* $Id: Smarty.class.php,v 1.508 2005/01/21 17:46:14 mohrt Exp $ */
+/* $Id: Smarty.class.php,v 1.509 2005/01/23 22:19:15 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -1132,8 +1132,7 @@
                     $this->debugging = true;
                 }
             } else {
-                $_cookie_var = $this->request_use_auto_globals ? $_COOKIE['SMARTY_DEBUG'] : $GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG'];
-                $this->debugging = $_cookie_var ? true : false;
+                $this->debugging = (bool)($this->request_use_auto_globals ? @$_COOKIE['SMARTY_DEBUG'] : @$GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG']);
             }
         }
 

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.