cvs: php-master-web /scripts mirror-test
| From: | Hannes Magnusson | Date: | Sun, 20 May 2007 21:07:14 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35458@lists.php.net to get a copy of this message | ||
bjori Sun May 20 21:07:14 2007 UTC
Modified files:
/php-master-web/scripts mirror-test
Log:
Fix logic
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.96&r2=1.97&diff_format=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.96 php-master-web/scripts/mirror-test:1.97
--- php-master-web/scripts/mirror-test:1.96 Wed May 16 08:36:29 2007
+++ php-master-web/scripts/mirror-test Sun May 20 21:07:14 2007
@@ -301,7 +301,7 @@
// Store the problem encountered in the database, and collect
// all the problems into one string in case it will be mailed
else {
- if(isset($host['disable']) && $host['disable'] === true
&& $host["lastchecked"] < $four_days_ago) {
+ if(isset($host['disable']) && $host['disable'] === true
&& $host["lastchecked"] > $four_days_ago) {
$query = "UPDATE mirrors SET ocmt = '" .
addslashes($host['problem']) . "', " .
"lastchecked = FROM_UNIXTIME($four_days_ago), " .
"lastupdated = FROM_UNIXTIME(" . $host['lastupdated'] .
") " .