Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
70d77267
Commit
70d77267
authored
May 09, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warnings on DBID_to_real_or_loginname. thanks to endico@mozilla.org
parent
6768b59c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
globals.pl
globals.pl
+2
-2
No files found.
globals.pl
View file @
70d77267
...
@@ -550,7 +550,7 @@ sub DBID_to_real_or_loginname {
...
@@ -550,7 +550,7 @@ sub DBID_to_real_or_loginname {
my
(
$id
)
=
(
@_
);
my
(
$id
)
=
(
@_
);
SendSQL
(
"SELECT login_name,realname FROM profiles WHERE userid = $id"
);
SendSQL
(
"SELECT login_name,realname FROM profiles WHERE userid = $id"
);
my
(
$l
,
$r
)
=
FetchSQLData
();
my
(
$l
,
$r
)
=
FetchSQLData
();
if
(
$r
eq
""
)
{
if
(
!
defined
$r
||
$r
eq
""
)
{
return
$l
;
return
$l
;
}
else
{
}
else
{
return
"$l ($r)"
;
return
"$l ($r)"
;
...
@@ -562,7 +562,7 @@ sub DBID_to_name {
...
@@ -562,7 +562,7 @@ sub DBID_to_name {
if
(
!
defined
$::cachedNameArray
{
$id
})
{
if
(
!
defined
$::cachedNameArray
{
$id
})
{
SendSQL
(
"select login_name from profiles where userid = $id"
);
SendSQL
(
"select login_name from profiles where userid = $id"
);
my
$r
=
FetchOneColumn
();
my
$r
=
FetchOneColumn
();
if
(
$r
eq
""
)
{
if
(
!
defined
$r
||
$r
eq
""
)
{
$r
=
"__UNKNOWN__"
;
$r
=
"__UNKNOWN__"
;
}
}
$::cachedNameArray
{
$id
}
=
$r
;
$::cachedNameArray
{
$id
}
=
$r
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment