[Alba-desarrollo] SVN Alba r4137 - prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Ene 31 19:31:51 CET 2007


Author: hsanchez
Date: 2007-01-31 15:31:40 -0300 (Wed, 31 Jan 2007)
New Revision: 4137

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php
Log:
corregido el ticket: #103

Modified: prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php	2007-01-31 16:58:17 UTC (rev 4136)
+++ prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php	2007-01-31 18:31:40 UTC (rev 4137)
@@ -93,8 +93,11 @@
             if ($this->getRequestParameter('alumno_id')) 
                 $this->division_id = 1;
             else{
-                $d = array_keys($optionsDivision);        
-                $this->division_id = $d[0];
+                //comprobar que que el array , sino le asigno
+                if (count($optionsDivision)>0){
+                    $d = array_keys($optionsDivision);        
+                    $this->division_id = $d[0];
+                }    
             }     
         }
 




Más información sobre la lista de distribución Alba-desarrollo