From e9c263c06992d7e44f72e353b80859c9adb9cab0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 15 Nov 2009 20:38:23 +0000 Subject: [PATCH] Possible fix for userid=0 --- inc/modules/admin/admin-inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index 7d38f8fa16..ca8bf8c006 100644 --- a/inc/modules/admin/admin-inc.php +++ b/inc/modules/admin/admin-inc.php @@ -713,7 +713,10 @@ function generateUserProfileLink ($userid, $title = '', $what = 'list_user') { if (($title == '') && ($userid > 0)) { // Set userid as title $title = $userid; - } // END - if + } elseif ($userid == 0) { + // User id zero is invalid + return '' . $userid . ''; + } if (($title == '0') && ($what == 'list_refs')) { // Return title again -- 2.39.5