[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18617] Typos and don't use nested functions
From: |
Johan Gunnarsson |
Subject: |
[Phpgroupware-cvs] [18617] Typos and don't use nested functions |
Date: |
Thu, 19 Jun 2008 23:29:12 +0000 |
Revision: 18617
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18617
Author: johang
Date: 2008-06-19 23:29:12 +0000 (Thu, 19 Jun 2008)
Log Message:
-----------
Typos and don't use nested functions
Modified Paths:
--------------
trunk/todo/inc/class.ipc_todo.inc.php
Modified: trunk/todo/inc/class.ipc_todo.inc.php
===================================================================
--- trunk/todo/inc/class.ipc_todo.inc.php 2008-06-19 23:27:14 UTC (rev
18616)
+++ trunk/todo/inc/class.ipc_todo.inc.php 2008-06-19 23:29:12 UTC (rev
18617)
@@ -89,13 +89,14 @@
*/
function getIdList($time = -1)
{
- function extract_id($todo) {
- return (int)$todo['id'];
+ $id_list = array();
+
+ foreach($this->botodo->_list() as $item)
+ {
+ $id_list[] = (int)$item["id"];
}
- $list = $this->botodo->_list();
-
- return array_map('extract_id', $list);
+ return $id_list;
}
/**
@@ -106,7 +107,7 @@
*/
function removeData($id)
{
- return $this->bonotes->delete($id);
+ return $this->botodo->delete($id);
}
/**
@@ -142,7 +143,7 @@
*/
function existData($id)
{
- return $this->bonotes->exists($id);
+ return $this->botodo->exists($id);
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18617] Typos and don't use nested functions,
Johan Gunnarsson <=