cvs: php-master-web /scripts mirror-test
| From: | Gabor Hojtsy | Date: | Mon, 06 Jan 2003 14:23:53 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14794@lists.php.net to get a copy of this message | ||
goba Mon Jan 6 09:23:53 2003 EDT
Modified files:
/php-master-web/scripts mirror-test
Log:
Always cast has_search information to integer, and enclose in qoutes
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.23 php-master-web/scripts/mirror-test:1.24
--- php-master-web/scripts/mirror-test:1.23 Mon Jan 6 08:58:45 2003
+++ php-master-web/scripts/mirror-test Mon Jan 6 09:23:53 2003
@@ -104,7 +104,7 @@
// the mirror, so the mirror data can be updated. Otherwise
// the previous data need to be kept!
if (isset($hosts[$i]['mirrorupdated'])) {
- $query = "UPDATE mirrors SET lastchecked = NOW(), has_search = " .
$hosts[$i]['has_search'] . ", " .
+ $query = "UPDATE mirrors SET lastchecked = NOW(), has_search = '" . ((int)
$hosts[$i]['has_search']) . "', " .
"lastupdated = FROM_UNIXTIME(" . $hosts[$i]['mirrorupdated'] .
"), " .
"phpversion = '" . addslashes($hosts[$i]['phpversion']) .
"' " .
"WHERE hostname = '" . $hosts[$i]['hostname'] .
"'";