controllers/opiniarbo.php
changeset 6 8fc19b7bd2dc
parent 5 cb13c07e7e5d
child 7 c7ff1a59ed84
--- a/controllers/opiniarbo.php	Sun Dec 28 20:48:10 2008 +0000
+++ b/controllers/opiniarbo.php	Sun Dec 28 21:15:01 2008 +0000
@@ -13,7 +13,7 @@
         $this->load->library('aulib');
 		$this->load->library('parser');
 		$this->load->helper('form');
-		$this->load->language('arbo','rusa');
+		$this->load->language('arbo','kataluna');
 		$this->load->helper('language');
 		$this->load->model('opiniarbo_model');
     }
@@ -27,10 +27,12 @@
         $this->userid2 = $this->uri->segment(4, 0);
 
         // If a form told to update userid2, do it
-        if ($this->input->post('other_user'))
+        // Checking for a ==FALSE, not entering when ==0.
+        if (!is_bool($this->input->post('other_user')))
         {
             $this->userid2 = $this->input->post('other_user');
         }
+        echo $this->userid2;
         $this->load->view('page_head');
         $this->_show_users();
         if ($this->userid == 0)