From e836fb8d7f24cd485eef0a7c96cdeaa7c0e31253 Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Wed, 13 Feb 2008 21:05:06 +0000
Subject: [PATCH] in which the chckens should have read the strstr()
 documentation to avoid looking stupid

---
 components/milliways.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/components/milliways.php b/components/milliways.php
index d4e3379..432defe 100644
--- a/components/milliways.php
+++ b/components/milliways.php
@@ -2,11 +2,11 @@
 
 function parseIdleTime($idletime) {
 	$idlearray = preg_split("/[hms]/",$idletime);
-	if (strstr('h', $idletime)) {
+	if (strstr($idletime,'h')) {
 		$hours = $idlearray[0];
 		$minutes = $idlearray[1];
 		$seconds = 0;
-	} elseif (strstr('m', $idletime)) {
+	} elseif (strstr($idletime,'m')) {
 		$hours = 0;
 		$minutes = $idlearray[0];
 		$seconds = $idlearray[1];
@@ -39,6 +39,7 @@ foreach ($wholist as $person) {
 	if ($person['idleseconds'] > 3600) {
 		$idlers[] = $person;
 	} else {
+		print_r($person);
 		$people[] = $person;
 	}
 }
-- 
GitLab