diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-07 17:14:46 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-07 17:14:46 +0200 |
commit | 457ab6312a19281e1c33b54411cb13878913e774 (patch) | |
tree | 7369b63ca194e312dca3d773d9bb714f39c8a6a2 | |
parent | 83db5f918da692f13bd0fd886caf5374337e1d00 (diff) |
pool.php: fix
-rw-r--r-- | pool.php | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |