summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-06-07 17:14:46 +0200
committerPatrick Simianer <p@simianer.de>2016-06-07 17:14:46 +0200
commit457ab6312a19281e1c33b54411cb13878913e774 (patch)
tree7369b63ca194e312dca3d773d9bb714f39c8a6a2
parent83db5f918da692f13bd0fd886caf5374337e1d00 (diff)
pool.php: fix
-rw-r--r--pool.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/pool.php b/pool.php
index 6ea0e2a..ad8de29 100644
--- a/pool.php
+++ b/pool.php
@@ -31,14 +31,12 @@
<?php
$f = fopen("../sessions/sessions", "r");
- $a = array();
$b = array();
$max = -1;
while (($line = fgets($f)) !== false) {
$x = explode("\t", $line, 2);
$j = intval($x[0]);
- $a[$x[1]] = $j;
- $b[$j] = $x[1];
+ $b[$j] = trim($x[1]);
if ($j>$max) {
$max = $j;
}