cvs: php-master-web /fetch cvsforwarding.php
| From: | Jim Winstead | Date: | Thu, 18 Oct 2001 02:25:14 +0000 |
| Subject: | cvs: php-master-web /fetch cvsforwarding.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-7063@lists.php.net to get a copy of this message | ||
jimw Wed Oct 17 22:25:14 2001 EDT
Modified files:
/php-master-web/fetch cvsforwarding.php
Log:
email may be null, but not empty
Index: php-master-web/fetch/cvsforwarding.php
diff -u php-master-web/fetch/cvsforwarding.php:1.5 php-master-web/fetch/cvsforwarding.php:1.6
--- php-master-web/fetch/cvsforwarding.php:1.5 Wed Oct 17 21:09:51 2001
+++ php-master-web/fetch/cvsforwarding.php Wed Oct 17 22:25:14 2001
@@ -7,7 +7,7 @@
// Connect and generate the list from the DB
if (@mysql_connect("localhost","nobody","")) {
if (@mysql_select_db("php3")) {
- $res = @mysql_query("SELECT cvsuser,email FROM users LEFT JOIN users_cvs USING (userid)
WHERE email != '' AND approved");
+ $res = @mysql_query("SELECT cvsuser,email FROM users LEFT JOIN users_cvs USING (userid)
WHERE email IS NOT NULL AND approved");
if ($res) {
while ($row = @mysql_fetch_array($res)) {
echo "$row[cvsuser]: $row[email];\n";