From: Roland Häder Date: Sun, 15 Nov 2009 20:38:23 +0000 (+0000) Subject: Possible fix for userid=0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9c263c06992d7e44f72e353b80859c9adb9cab0;p=mailer.git Possible fix for userid=0 --- 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