wip
This commit is contained in:
1 parent
046407df18
commit
ac6ce69989
1 file changed
+3
-3
@@ -320,7 +320,7 @@ class Odds
|
|||||||
|
|
||||||
case 'starting_time':
|
case 'starting_time':
|
||||||
$res = EventBookmaker::where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->first();
|
$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;
|
$res->starttime = $attributeValue;
|
||||||
DatabaseFunctions::save_update($res);
|
DatabaseFunctions::save_update($res);
|
||||||
}
|
}
|
||||||
@@ -336,7 +336,7 @@ class Odds
|
|||||||
case 'starting_time':
|
case 'starting_time':
|
||||||
|
|
||||||
$res = EventBookmaker::where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->first();
|
$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;
|
$res->starttime = $attributeValue;
|
||||||
DatabaseFunctions::save_update($res);
|
DatabaseFunctions::save_update($res);
|
||||||
}
|
}
|
||||||
@@ -352,7 +352,7 @@ class Odds
|
|||||||
case 'starting_time':
|
case 'starting_time':
|
||||||
|
|
||||||
$res = EventBookmaker::where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->first();
|
$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;
|
$res->starttime = $attributeValue;
|
||||||
DatabaseFunctions::save_update($res);
|
DatabaseFunctions::save_update($res);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user