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
a62dee8b
Commit
a62dee8b
authored
Aug 13, 2023
by
Nemo Ma
Committed by
GitHub
Aug 13, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #205 from winddramon/nachster
bug fix for insite messages
parents
a6e323c7
f1879583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/messages.func.php
include/messages.func.php
+4
-3
No files found.
include/messages.func.php
View file @
a62dee8b
...
@@ -21,7 +21,8 @@ function init_messages($mode){
...
@@ -21,7 +21,8 @@ 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
;
if
(
$cuser
){
if
(
$cuser
){
//考虑到devtools.php也得先载入common.inc.php,从而如果没有建表就会直接出错,必须在这里就做判断是否存在message表
//考虑到devtools.php也得先载入common.inc.php,从而如果没有建表就会直接出错,必须在这里就做判断是否存在message表
//而既然做了判断为什么不直接建表呢?
//而既然做了判断为什么不直接建表呢?
...
@@ -33,9 +34,9 @@ function message_check_new($username)
...
@@ -33,9 +34,9 @@ function message_check_new($username)
create_messages_db
();
create_messages_db
();
}
}
}
}
$result
=
$db
->
query
(
"SELECT mid FROM
{
$gtablepre
}
messages WHERE receiver='
$cuser
' AND rd=0"
);
$num
=
$db
->
num_rows
(
$result
);
}
}
$result
=
$db
->
query
(
"SELECT mid FROM
{
$gtablepre
}
messages WHERE receiver='
$username
' AND rd=0"
);
$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