Possible fix for userid=0
authorRoland Häder <roland@mxchange.org>
Sun, 15 Nov 2009 20:38:23 +0000 (20:38 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 15 Nov 2009 20:38:23 +0000 (20:38 +0000)
inc/modules/admin/admin-inc.php

index 7d38f8fa16b9719549f716baacd2003db3def04a..ca8bf8c006e70679dd63c837f7582484c3656e49 100644 (file)
@@ -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 '<strong>' . $userid . '</strong>';
+       }
 
        if (($title == '0') && ($what == 'list_refs')) {
                // Return title again