phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] [19026] Classic typo fix


From: Caeies
Subject: [Phpgroupware-cvs] [19026] Classic typo fix
Date: Wed, 07 Jan 2009 18:35:26 +0000

Revision: 19026
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19026
Author:   Caeies
Date:     2009-01-07 18:35:25 +0000 (Wed, 07 Jan 2009)

Log Message:
-----------
Classic typo fix

Modified Paths:
--------------
    core/trunk/todo/inc/class.sotodo.inc.php
    core/trunk/todo/inc/class.uitodo.inc.php

Modified: core/trunk/todo/inc/class.sotodo.inc.php
===================================================================
--- core/trunk/todo/inc/class.sotodo.inc.php    2009-01-07 18:28:52 UTC (rev 
19025)
+++ core/trunk/todo/inc/class.sotodo.inc.php    2009-01-07 18:35:25 UTC (rev 
19026)
@@ -112,14 +112,14 @@
                                $filter = 'none';
                        }
 
-                       $filtermethod = "(( todo_owner = {$this->account} OR 
todo_assigned = {$this->account}";
+                       $filtermethod = "(( todo_owner = '{$this->account}' OR 
todo_assigned = '{$this->account}'";
 
                        if ( is_array($this->user_groups) && 
count($this->user_groups) )
                        {
-                               $filtermethod .= ' OR assigned_group IN(0';
+                               $filtermethod .= ' OR assigned_group IN(\'0\'';
                                foreach ( $this->user_groups as $group )
                                {
-                                       $filtermethod .= ', ' . 
$group['account_id'];
+                                       $filtermethod .= ', \'' . 
$group->id.'\'';
                                }
                                $filtermethod .= ')';
                        }

Modified: core/trunk/todo/inc/class.uitodo.inc.php
===================================================================
--- core/trunk/todo/inc/class.uitodo.inc.php    2009-01-07 18:28:52 UTC (rev 
19025)
+++ core/trunk/todo/inc/class.uitodo.inc.php    2009-01-07 18:35:25 UTC (rev 
19026)
@@ -398,12 +398,12 @@
                        $accounts = $this->botodo->employee_list($type);
                        foreach ( $accounts as $account )
                        {
-                               $user_list .= '<option value="' . 
$account['account_id'] . '"';
-                               if (in_array($account['account_id'], $selected))
+                               $user_list .= '<option value="' . $account->id 
. '"';
+                               if (in_array($account->id, $selected))
                                {
                                        $user_list .= ' selected';
                                }
-                               $user_list .= '>' . 
$GLOBALS['phpgw']->accounts->id2name($account['account_id']) . "</option>\n";
+                               $user_list .= '>' . $account . "</option>\n";
                        }
                        return $user_list;
                }






reply via email to

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