aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-10 20:27:11 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-10 20:27:11 +0000
commit82d1fce1124a497dc1b78cf88dbc29e2eb1f6ae5 (patch)
tree4fdbc2b52e74d4d4f8f706190d889b299174293f /h-source/Application/Models
parent51e075bda53a612cdd793c4ca3d082323c1bd479 (diff)
administrators can now see the list of pages that have to be approved
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r--h-source/Application/Models/HardwareModel.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/h-source/Application/Models/HardwareModel.php b/h-source/Application/Models/HardwareModel.php
index 11aea59..d19cfbd 100644
--- a/h-source/Application/Models/HardwareModel.php
+++ b/h-source/Application/Models/HardwareModel.php
@@ -81,6 +81,13 @@ class HardwareModel extends Model_Map {
$this->values['deleted'] = 'no';
}
}
+ else if (isset($this->values['deleted']))
+ {
+ if (strcmp($this->values['deleted'],'no') === 0)
+ {
+ $this->values['approved'] = 'yes';
+ }
+ }
return parent::update($id);
}