Fixed language, and comparing with 'noone'.
authorviric@mandarina
Sun, 28 Dec 2008 21:15:01 +0000
changeset 6 8fc19b7bd2dc
parent 5 cb13c07e7e5d
child 7 c7ff1a59ed84
Fixed language, and comparing with 'noone'.
controllers/opiniarbo.php
language/kataluna/arbo_lang.php
language/rusa/arbo_lang.php
--- 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)
--- a/language/kataluna/arbo_lang.php	Sun Dec 28 20:48:10 2008 +0000
+++ b/language/kataluna/arbo_lang.php	Sun Dec 28 21:15:01 2008 +0000
@@ -20,4 +20,4 @@
 $lang['compare_with_str'] = "Comparar amb";
 $lang['users_str'] = "Usuaris";
 $lang['showheadassertions_str'] = "Mostrar les afirmacions inicials";
-$lang['noone_str'] = "Ningú";
+$lang['noone_str'] = "ningú";
--- a/language/rusa/arbo_lang.php	Sun Dec 28 20:48:10 2008 +0000
+++ b/language/rusa/arbo_lang.php	Sun Dec 28 21:15:01 2008 +0000
@@ -20,5 +20,5 @@
 $lang['compare_with_str'] = "Сравнить с";
 $lang['users_str'] = "Пользователи";
 $lang['showheadassertions_str'] = "Показывать начальные утверждения";
-$lang['noone_str'] = "Некем";
+$lang['noone_str'] = "ни с кем";
 $lang['id_str'] = "Ид.";