phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] api/accounts/class.accounts_sql.php, 1.1.1.1.2.16


From: nomail
Subject: [Phpgroupware-cvs] api/accounts/class.accounts_sql.php, 1.1.1.1.2.16
Date: Thu, 20 May 2004 18:12:47 -0000

Update of /api/accounts
Modified Files:
        Branch: proposal-branch
          class.accounts_sql.php

date: 2004/04/23 04:28:21;  author: jengo;  state: Exp;  lines: +10 -15

Log Message:
Minor fixes and formating
=====================================================================
No syntax errors detected in -
=====================================================================
Index: api/accounts/class.accounts_sql.php
diff -u api/accounts/class.accounts_sql.php:1.1.1.1.2.15 
api/accounts/class.accounts_sql.php:1.1.1.1.2.16
--- api/accounts/class.accounts_sql.php:1.1.1.1.2.15    Wed Apr 21 06:34:21 2004
+++ api/accounts/class.accounts_sql.php Fri Apr 23 04:28:21 2004
@@ -156,26 +156,21 @@
                function list_repository()
                {
                        $args = new safe_args();
-                       $args->set('_type', 'both');
-                       $args->set('start', NOTSET, 'any');
-                       $args->set('sort', NOTSET, 'any');
-                       $args->set('order', NOTSET, 'any');
-                       $args->set('query', NOTSET, 'any');
-                       $args->set('offset', NOTSET, 'any');
+                       $args->set('_type','both');
+                       $args->set('start',0,'any');
+                       $args->set('sort','DESC');
+                       $args->set('order',NOTSET,'any');
+                       $args->set('query',NOTSET,'any');
+                       $args->set('offset',-1,'any');
                        $args = $args->get(func_get_args());
 
-                       if (! $args['sort'])
-                       {
-                               $args['sort'] = "DESC";
-                       }
-
                        if ($args['order'])
                        {
-                               $orderclause = 'ORDER BY '.$args['order'].' 
'.$args['sort'];
+                               $orderclause = 'ORDER BY ' . $args['order'] . ' 
' . $args['sort'];
                        }
                        else
                        {
-                               $orderclause = "ORDER BY account_lid ASC";
+                               $orderclause = 'ORDER BY account_lid ASC';
                        }
 
                        switch ($args['_type'])
@@ -334,7 +329,7 @@
                        }
 
                        $dbresult = $GLOBALS['phpgw']->db->Execute('SELECT 
account_type FROM phpgw_accounts WHERE account_id=' . $account_id);
-                       if($dbresult !== false)
+                       if ($dbresult !== false)
                        {
                                $this->account_type_cache[$account_id] = 
$dbresult->fields['account_type'];
                        }




reply via email to

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