1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fixed annoying popup when debugging

This commit is contained in:
streaky
2007-11-09 05:41:37 +00:00
parent 9ed05a2995
commit f6f49c3029

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
| $Revision: 1.27 $
| $Date: 2007-10-30 00:48:23 $
| $Author: e107coders $
| $Revision: 1.28 $
| $Date: 2007-11-09 05:41:37 $
| $Author: streaky $
+----------------------------------------------------------------------------+
*/
//
@@ -1506,12 +1506,16 @@ function include_lan($path, $force = false) {
}
if(!function_exists("print_a")) {
$charset = "utf-8";
if(defined("CHARSET")) {
$charset = CHARSET;
}
function print_a($var, $return = false) {
if(!$return){
echo '<pre>'.print_r($var, true).'</pre>';
echo '<pre>'.htmlspecialchars(print_r($var, true), ENT_QUOTES, $charset).'</pre>';
return true;
} else {
return '<pre>'.print_r($var, true).'</pre>';
return '<pre>'.htmlspecialchars(print_r($var, true), ENT_QUOTES, $charset).'</pre>';
}
}
}