cvs: php-master-web /manage user-notes.php
| From: | Gabor Hojtsy | Date: | Sat, 26 Jun 2004 14:43:44 +0000 |
| Subject: | cvs: php-master-web /manage user-notes.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-25138@lists.php.net to get a copy of this message | ||
goba Sat Jun 26 10:43:44 2004 EDT
Modified files:
/php-master-web/manage user-notes.php
Log:
bug found by Nuno
http://cvs.php.net/diff.php/php-master-web/manage/user-notes.php?r1=1.48&r2=1.49&ty=u
Index: php-master-web/manage/user-notes.php
diff -u php-master-web/manage/user-notes.php:1.48 php-master-web/manage/user-notes.php:1.49
--- php-master-web/manage/user-notes.php:1.48 Fri Jun 25 12:58:44 2004
+++ php-master-web/manage/user-notes.php Sat Jun 26 10:43:44 2004
@@ -1,5 +1,5 @@
<?php
-// $Id: user-notes.php,v 1.48 2004/06/25 16:58:44 goba Exp $
+// $Id: user-notes.php,v 1.49 2004/06/26 14:43:44 goba Exp $
// Force login before action can be taken
include_once 'login.inc';
@@ -140,7 +140,7 @@
echo "<p>Mass change succeeded.</p>\n";
} elseif ($step == 1) {
if (!empty($_REQUEST["new_sect"]) && $where) {
- db_query("SELECT COUNT(*) FROM note WHERE " . implode(" AND ", $where));
+ $result = db_query("SELECT COUNT(*) FROM note WHERE " . implode(" AND ",
$where));
if (!($count = mysql_result($result, 0, 0))) {
echo "<p>There are no such notes.</p>\n";
} else {