Skip to content

Commit

Permalink
Fix issue 42841: Banners application crashes (#42869)
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Feb 28, 2024
1 parent 3277eb8 commit 4132f18
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -38,10 +38,10 @@ class BannersHelper extends ContentHelper
*/
public static function updateReset()
{
$db = Factory::getDbo();
$date = Factory::getDate();
$app = Factory::getApplication();
$user = $app->getIdentity();
$db = Factory::getDbo();
$nowDate = Factory::getDate()->toSql();
$app = Factory::getApplication();
$user = $app->getIdentity();

$query = $db->getQuery(true)
->select('*')
Expand All @@ -52,7 +52,7 @@ public static function updateReset()
$db->quoteName('reset') . ' IS NOT NULL',
]
)
->bind(':date', $date)
->bind(':date', $nowDate)
->extendWhere(
'AND',
[
Expand Down

0 comments on commit 4132f18

Please sign in to comment.