forked from science-ation/science-ation
Remove debug line, fix tab indent
This commit is contained in:
parent
c284fed0f5
commit
a16e749d9f
@ -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() {
|
||||||
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user