restaurant open
This commit is contained in:
parent
51c659bfbd
commit
d13b77e232
@ -646,6 +646,10 @@ class Crunchbutton_Restaurant extends Cana_Table
|
||||
// return true;
|
||||
}
|
||||
|
||||
if(!$this->open_for_business) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$hours = $this->hours();
|
||||
$DeLorean = new TimeMachine($this->timezone);
|
||||
$today = $DeLorean->now();
|
||||
|
||||
@ -200,7 +200,7 @@ var Restaurant = function(id) {
|
||||
self.open = function() {
|
||||
|
||||
// this overrides everything
|
||||
if(!parseInt(this.open_for_business)) {
|
||||
if(this.open_for_business === "0") {
|
||||
this._open = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user