Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17416/include
Modified Files:
plugin_internal.inc.php
Log Message:
- is_array() is run on the wrong variable, $authors => $row_authors
Index: plugin_internal.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/plugin_internal.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- plugin_internal.inc.php 20 Nov 2004 12:21:40 -0000 1.5
+++ plugin_internal.inc.php 24 Nov 2004 18:41:29 -0000 1.6
@@ -751,9 +751,8 @@
$base = $serendipity['serendipityHTTPPath'];
}
- $link = $base . ($serendipity['rewrite'] == 'none' ? 'serendipity_entries.php?/' : '') . PATH_ENTRIES;
$text = (($_SESSION['serendipityAuthedUser'] === true) ? SUPERUSER_OPEN_ADMIN : SUPERUSER_OPEN_LOGIN);
- echo '<a href="' . $link . '" title="'. $text .'">'. $text .'</a>';
+ echo '<a href="' . serendipity_rewriteURL('admin/') . '" title="'. $text .'">'. $text .'</a>';
}
function introspect_config_item($name, &$propbag)
@@ -934,7 +933,7 @@
case 'authorid':
$row_authors = serendipity_db_query("SELECT username, authorid FROM {$serendipity['dbPrefix']}authors");
$authors = array('all' => ALL_AUTHORS);
- if (is_array($authors)) {
+ if (is_array($row_authors)) {
foreach($row_authors AS $rownr => $row) {
$authors[$row['authorid']] = $row['username'];
}
|