aboutsummaryrefslogtreecommitdiffstats
path: root/toj/php/square.inc.php
diff options
context:
space:
mode:
authorpzread <netfirewall@gmail.com>2013-04-09 09:37:29 +0800
committerpzread <netfirewall@gmail.com>2013-04-09 09:44:11 +0800
commit31e170379d567a71f1792e0bad9aea6ca3c6478a (patch)
tree73cac5d618f466db3b5be6982824cc0e1b421f90 /toj/php/square.inc.php
parent3c6abbe11d9f2d173020add74217af2d450a1d16 (diff)
downloadtaiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.tar
taiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.tar.gz
taiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.tar.bz2
taiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.tar.lz
taiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.tar.xz
taiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.tar.zst
taiwan-online-judge-31e170379d567a71f1792e0bad9aea6ca3c6478a.zip
Fix segment fault(use deleted memory). Add square-problem manage. Check setting file exist
Diffstat (limited to 'toj/php/square.inc.php')
-rwxr-xr-xtoj/php/square.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/toj/php/square.inc.php b/toj/php/square.inc.php
index 784490d..4a4b52f 100755
--- a/toj/php/square.inc.php
+++ b/toj/php/square.inc.php
@@ -143,6 +143,7 @@ class square
$ret = array();
while($row = pg_fetch_object($sqlr))
{
+ $row->sqid = intval($row->sqid);
array_push($ret, $row);
}
return $ret;
@@ -159,6 +160,7 @@ class square
$ret = array();
while($row = pg_fetch_object($sqlr))
{
+ $row->sqid = intval($row->sqid);
array_push($ret, $row);
}
return $ret;