Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13106
Modified Files:
serendipity_functions.inc.php NEWS
Log Message:
bug #1030581: categories display fixed
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.226
retrieving revision 1.227
diff -u -d -r1.226 -r1.227
--- NEWS 20 Sep 2004 14:00:13 -0000 1.226
+++ NEWS 20 Sep 2004 14:17:33 -0000 1.227
@@ -6,6 +6,9 @@
Version 0.7-beta3 ()
------------------------------------------------------------------------
+ * Fixed bug #1030581: Category sidebar plugin now properly displays
+ only categories of selected author (garvinhicking)
+
* Fixed XML RPC API to set categories when posting via BlogJet
or other interfaces (garvinhicking)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.429
retrieving revision 1.430
diff -u -d -r1.429 -r1.430
--- serendipity_functions.inc.php 20 Sep 2004 14:00:14 -0000 1.429
+++ serendipity_functions.inc.php 20 Sep 2004 14:17:33 -0000 1.430
@@ -859,7 +859,7 @@
}
if ($authorid != 'all' && is_numeric($authorid)) {
- $where = " WHERE ((c.authorid = $authorid OR c.authorid = 0) OR a.userlevel < " . $serendipity['serendipityUserlevel'] . ')';
+ $where = " WHERE ((c.authorid = $authorid OR c.authorid = 0) " . (!empty($serendipity['serendipityUserlevel']) ? " OR a.userlevel < {$serendipity['serendipityUserlevel']}" : '') . ')';
} else {
$where = '';
}
|