Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
92233151
Commit
92233151
authored
Aug 13, 2023
by
winddramon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug fix
parent
3e70fda0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/messages.func.php
include/messages.func.php
+2
-2
No files found.
include/messages.func.php
View file @
92233151
...
@@ -21,7 +21,7 @@ function init_messages($mode){
...
@@ -21,7 +21,7 @@ function init_messages($mode){
//如果没有新站内信则返回0,否则返回新站内信的数目
//如果没有新站内信则返回0,否则返回新站内信的数目
function
message_check_new
(
$username
)
function
message_check_new
(
$username
)
{
{
global
$cuser
,
$db
,
$gtablepre
;
global
$cuser
,
$db
,
$gtablepre
,
$messages_autocreatedb
;
$num
=
0
;
$num
=
0
;
if
(
$cuser
){
if
(
$cuser
){
//考虑到devtools.php也得先载入common.inc.php,从而如果没有建表就会直接出错,必须在这里就做判断是否存在message表
//考虑到devtools.php也得先载入common.inc.php,从而如果没有建表就会直接出错,必须在这里就做判断是否存在message表
...
@@ -34,7 +34,7 @@ function message_check_new($username)
...
@@ -34,7 +34,7 @@ function message_check_new($username)
create_messages_db
();
create_messages_db
();
}
}
}
}
$result
=
$db
->
query
(
"SELECT mid FROM
{
$gtablepre
}
messages WHERE receiver='
$
username
' AND rd=0"
);
$result
=
$db
->
query
(
"SELECT mid FROM
{
$gtablepre
}
messages WHERE receiver='
$
cuser
' AND rd=0"
);
$num
=
$db
->
num_rows
(
$result
);
$num
=
$db
->
num_rows
(
$result
);
}
}
return
$num
;
return
$num
;
...
...
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