Changeset 626 for trunk/app/controllers/forums_controller.php
- Timestamp:
- 07/04/08 21:52:56 (5 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/forums_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/forums_controller.php
r540 r626 188 188 public function admin_change($status, $forum_id) 189 189 { 190 if ( !is_numeric($status) || !intval($forum_id) ) 191 {192 $this->redirect('/');193 }190 if ( !is_numeric($status) || !intval($forum_id) ): 191 $this->redirect('/'); 192 return false; 193 endif; 194 194 195 195 $this->data['Forum']['status'] = ($status == 0 ) ? 1 : 0; 196 196 197 $this->data['Forum']['id'] = $id; 198 199 if ($this->Forum->save($this->data['Forum'])) 200 { 201 $this->msgFlash('Status changed', '/admin/catforums/listing'); 202 } 197 $this->data['Forum']['id'] = $forum_id; 198 199 if ($this->Forum->save($this->data['Forum'])): 200 $this->msgFlash(__('Status modified', true), '/admin/catforums/listing'); 201 endif; 203 202 } 204 203
