File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public function getTag($id) {
122
122
->prepare ('SELECT * FROM ' . $ this ->table . ' WHERE (type ="sHtml5Start" OR type = "sHtml5End") AND id = ? ' )
123
123
->execute ($ id );
124
124
125
- return ($ item ->numRows () > 0 ) ? $ item : null ;
125
+ return ($ item ->numRows > 0 ) ? $ item : null ;
126
126
}
127
127
128
128
/**
@@ -134,9 +134,9 @@ public function getcorrespondingTag(Result $item)
134
134
{
135
135
$ type = $ this ->matchingTags [$ item ->type ];
136
136
$ result = \Database::getInstance ()
137
- ->prepare ('SELECT * FROM ' . $ this ->table . ' WHERE sh5_pid = ? AND type = ? ' )
138
- ->execute ($ item ->sh5_pid , $ type );
139
-
137
+ ->prepare ('SELECT * FROM ' . $ this ->table . ' WHERE pid = ? AND sh5_pid = ? AND type = ? ' )
138
+ ->execute ($ item ->pid , $ item -> sh5_pid , $ type );
139
+
140
140
return ($ result ->numRows == 0 ) ? null : $ result ;
141
141
}
142
142
You can’t perform that action at this time.
0 commit comments