cvs: pearweb /include/Damblan Trackback.php
| From: | Tobias Schlitt | Date: | Tue, 24 May 2005 15:12:43 +0000 |
| Subject: | cvs: pearweb /include/Damblan Trackback.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-32104@lists.php.net to get a copy of this message | ||
toby Tue May 24 11:12:43 2005 EDT
Modified files:
/pearweb/include/Damblan Trackback.php
Log:
* Fix problems resulting from fromer inser problem (approved == "").
http://cvs.php.net/diff.php/pearweb/include/Damblan/Trackback.php?r1=1.11&r2=1.12&ty=u
Index: pearweb/include/Damblan/Trackback.php
diff -u pearweb/include/Damblan/Trackback.php:1.11 pearweb/include/Damblan/Trackback.php:1.12
--- pearweb/include/Damblan/Trackback.php:1.11 Tue May 24 10:54:14 2005
+++ pearweb/include/Damblan/Trackback.php Tue May 24 11:12:41 2005
@@ -355,7 +355,7 @@
if ($approvedOnly) {
$sql .= ' WHERE approved = '.$dbh->quoteSmart('true');
} else if ($unapprovedOnly) {
- $sql .= ' WHERE approved = '.$dbh->quoteSmart('false');
+ $sql .= ' WHERE approved = '.$dbh->quoteSmart('false').' OR
approved = ""';
}
$sql .= ' ORDER BY timestamp DESC LIMIT ' . $offset . ',' . $number;
$res = $dbh->getAll($sql, null, DB_FETCHMODE_ASSOC);