This commit is contained in:
salam committed 2026-02-07 07:12:03 +01:00
1 parent 046407df18
commit ac6ce69989
1 file changed
+3 -3
+3 -3
View File
@@ -320,7 +320,7 @@ class Odds
case 'starting_time':
$res = EventBookmaker::where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->first();
if ($res->starttime != $attributeValue) {
if ($res && $res->starttime != $attributeValue) {
$res->starttime = $attributeValue;
DatabaseFunctions::save_update($res);
}
@@ -336,7 +336,7 @@ class Odds
case 'starting_time':
$res = EventBookmaker::where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->first();
if ($res->starttime != $attributeValue) {
if ($res && $res->starttime != $attributeValue) {
$res->starttime = $attributeValue;
DatabaseFunctions::save_update($res);
}
@@ -352,7 +352,7 @@ class Odds
case 'starting_time':
$res = EventBookmaker::where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->first();
if ($res->starttime != $attributeValue) {
if ($res && $res->starttime != $attributeValue) {
$res->starttime = $attributeValue;
DatabaseFunctions::save_update($res);
}