restaurant open

This commit is contained in:
BDC 2013-04-24 20:59:56 -04:00
parent 51c659bfbd
commit d13b77e232
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -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;
}