Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv889
Modified Files:
serendipity_sidebar_items.php
Log Message:
fixed foreach() error on installation.
Index: serendipity_sidebar_items.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_sidebar_items.php,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- serendipity_sidebar_items.php 15 Sep 2004 15:17:10 -0000 1.85
+++ serendipity_sidebar_items.php 27 Sep 2004 13:19:42 -0000 1.86
@@ -684,8 +684,10 @@
$row_authors = serendipity_db_query("SELECT username, authorid FROM {$serendipity['dbPrefix']}authors");
$authors = array('all' => ALL_AUTHORS);
- foreach($row_authors AS $rownr => $row) {
- $authors[$row['authorid']] = $row['username'];
+ if (is_array($authors)) {
+ foreach($row_authors AS $rownr => $row) {
+ $authors[$row['authorid']] = $row['username'];
+ }
}
$this->author_select_values = $authors;
|