1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00

Add more fields

This commit is contained in:
Daniel 2021-10-15 09:45:50 -03:00
parent 444eab22be
commit 073e4a59db

View file

@ -29,11 +29,11 @@ class Scheduler_commands extends ObjectYPT {
}
$sql = "SELECT * FROM " . static::getTableName() . " WHERE status='".self::$statusRepeat."' ";
$minute = date('i');
$hour = date('H');
$day_of_month = date('d');
$month = date('m');
$day_of_week = date('w');
$minute = intval(date('i'));
$hour = intval(date('H'));
$day_of_month = intval(date('d'));
$month = intval(date('m'));
$day_of_week = intval(date('w'));
$sql .= " AND (repeat_minute IS NULL OR repeat_minute = {$minute}) ";
$sql .= " AND (repeat_hour IS NULL OR repeat_hour = {$hour}) ";
@ -41,7 +41,7 @@ class Scheduler_commands extends ObjectYPT {
$sql .= " AND (repeat_month IS NULL OR repeat_month = {$month}) ";
$sql .= " AND (repeat_day_of_week IS NULL OR repeat_day_of_week = {$day_of_week}) ";
//echo $sql;
echo $sql;exit;
$res = sqlDAL::readSql($sql);
$fullData = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);