projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a6b8f
)
DataObjects/Projects.php
author
Alan Knowles
<alan@roojs.com>
Sun, 11 Dec 2011 08:27:58 +0000
(16:27 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sun, 11 Dec 2011 08:27:58 +0000
(16:27 +0800)
DataObjects/Projects.php
patch
|
blob
|
history
diff --git
a/DataObjects/Projects.php
b/DataObjects/Projects.php
index
e398f61
..
3677508
100644
(file)
--- a/
DataObjects/Projects.php
+++ b/
DataObjects/Projects.php
@@
-308,16
+308,9
@@
class Pman_Core_DataObjects_Projects extends DB_DataObject
$this->whereAdd("
(client_id= $id) OR (agency_id= $id)
");
- if (!empty($data)) {
- $this->selectAdd();
- $this->selectAdd($data);
- }
- $this->find();
- $ret = array();
- while ($this->fetch()) {
- $ret[] = empty($data) ? clone($this) : $this->$data;
- }
- return $ret;
+
+ return empty($data) ? $this->fetchAll() :$this->fetchAll($data);
+
}