Remove debug line, fix tab indent

This commit is contained in:
dave 2010-02-23 19:58:07 +00:00
parent c284fed0f5
commit a16e749d9f
2 changed files with 1 additions and 2 deletions

View File

@ -1248,7 +1248,6 @@ function error_($str, $i18n_array=array(), $timeout=-1)
function debug_($str) function debug_($str)
{ {
if($_SESSION['debug'] != true) return; if($_SESSION['debug'] != true) return;
hexdump($str);
$s = str_replace("\n", "", nl2br(htmlspecialchars($str))).'<br />'; $s = str_replace("\n", "", nl2br(htmlspecialchars($str))).'<br />';
echo "<script type=\"text/javascript\"> echo "<script type=\"text/javascript\">
$(document).ready(function() { $(document).ready(function() {

View File

@ -48,7 +48,7 @@ case 'save':
$stats = $_POST['stats']; $stats = $_POST['stats'];
$year = intval($_POST['year']); $year = intval($_POST['year']);
foreach($stats as $k=>$v) { foreach($stats as $k=>$v) {
$stats[$k] = mysql_escape_string($stats[$k]); $stats[$k] = mysql_escape_string($stats[$k]);
} }