mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
ceded5d0bb
commit
bad8e55abc
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ class Comment {
|
||||||
$sql .= ", 0 as myVote ";
|
$sql .= ", 0 as myVote ";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= " FROM comments c LEFT JOIN users as u ON u.id = users_id LEFT JOIN videos as v ON v.id = videos_id WHERE 1=1 ";
|
$sql .= " FROM comments c LEFT JOIN users as u ON u.id = users_id LEFT JOIN videos as v ON v.id = videos_id WHERE 1=1 AND u.name = 'a' ";
|
||||||
|
|
||||||
if (!empty($videoId)) {
|
if (!empty($videoId)) {
|
||||||
$sql .= " AND videos_id = ? ";
|
$sql .= " AND videos_id = ? ";
|
||||||
|
|
|
@ -1881,7 +1881,7 @@ if (typeof gtag !== \"function\") {
|
||||||
$row['photo'] = self::getPhoto($row['id']);
|
$row['photo'] = self::getPhoto($row['id']);
|
||||||
$row['background'] = self::getBackground($row['id']);
|
$row['background'] = self::getBackground($row['id']);
|
||||||
$row['tags'] = self::getTags($row['id']);
|
$row['tags'] = self::getTags($row['id']);
|
||||||
$row['name'] = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', '', $row['name']);
|
$row['name'] = @preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', '', $row['name']);
|
||||||
$row['isEmailVerified'] = $row['emailVerified'];
|
$row['isEmailVerified'] = $row['emailVerified'];
|
||||||
if (!is_null($row['externalOptions'])) {
|
if (!is_null($row['externalOptions'])) {
|
||||||
$externalOptions = self::decodeExternalOption($row['externalOptions']);
|
$externalOptions = self::decodeExternalOption($row['externalOptions']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue