mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix SQL query syntax in VastCampaignsVideos class for proper condition handling
This commit is contained in:
parent
cbfee8d13c
commit
7cb3d65129
1 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ class VastCampaignsVideos extends ObjectYPT
|
|||
global $global;
|
||||
$vast_campaigns_id = intval($vast_campaigns_id);
|
||||
$videos_id = intval($videos_id);
|
||||
$sql = "SELECT * FROM " . static::getTableName() . " WHERE vast_campaigns_id = ? , videos_id = ? LIMIT 1";
|
||||
$sql = "SELECT * FROM " . static::getTableName() . " WHERE vast_campaigns_id = ? AND videos_id = ? LIMIT 1";
|
||||
// I had to add this because the about from customize plugin was not loading on the about page http://127.0.0.1/AVideo/about
|
||||
$res = sqlDAL::readSql($sql, "ii", [$vast_campaigns_id, $videos_id]);
|
||||
$data = sqlDAL::fetchAssoc($res);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue