fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8097]


From: Erik Holm-Larsen
Subject: [Fmsystem-commits] [8097]
Date: Mon, 14 Nov 2011 07:11:42 +0000

Revision: 8097
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8097
Author:   erikhl
Date:     2011-11-14 07:11:42 +0000 (Mon, 14 Nov 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/activitycalendar/inc/class.soactivity.inc.php

Modified: trunk/activitycalendar/inc/class.soactivity.inc.php
===================================================================
--- trunk/activitycalendar/inc/class.soactivity.inc.php 2011-11-14 07:04:46 UTC 
(rev 8096)
+++ trunk/activitycalendar/inc/class.soactivity.inc.php 2011-11-14 07:11:42 UTC 
(rev 8097)
@@ -494,9 +494,13 @@
                $i = 0;
                while ($this->db->next_record())
                {
-                       $district[$i]['part_of_town_id'] = 
$this->db->f('part_of_town_id');
-                       $district[$i]['name'] = 
stripslashes($this->db->f('name'));
-                       $i++;
+                       $name = $this->db->f('name');
+                       if($name != 'ØVRIGE')
+                       {
+                               $district[$i]['part_of_town_id'] = 
$this->db->f('part_of_town_id');
+                               $district[$i]['name'] = 
stripslashes($this->db->f('name'));
+                               $i++;
+                       }
                }
 
                return $district;
@@ -553,10 +557,14 @@
                $sql = "SELECT * FROM bb_agegroup where active=1 ORDER BY sort";
                $this->db->query($sql, __LINE__, __FILE__);
                while($this->db->next_record()){
-                       $target = new 
activitycalendar_target($this->db->f('id'));
-                       $target->set_description($this->db->f('description'));
-                       $target->set_name($this->db->f('name'));
-                       $targets[] = $target;
+                       $name = $this->db->f('name');
+                       if($name != 'Tilskuere')
+                       {
+                               $target = new 
activitycalendar_target($this->db->f('id'));
+                               
$target->set_description($this->db->f('description'));
+                               $target->set_name($this->db->f('name'));
+                               $targets[] = $target;
+                       }
                }
                return $targets;
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]