|
@@ -44,13 +44,11 @@ class DBObject implements ISavableObject {
|
|
|
|
|
|
function __construct($table, $key, $id) {
|
|
|
$this->_table=$table;
|
|
|
- $this->_keys=array();
|
|
|
- $this->_ids=array();
|
|
|
|
|
|
if (is_array($key)&&is_array($id)) {
|
|
|
$this->_keys=$key;
|
|
|
$this->_ids=$id;
|
|
|
- } elseif ($id!=null && $id!=0 && $id!="") {
|
|
|
+ } else {
|
|
|
$this->_keys=array($key);
|
|
|
$this->_ids=array($id);
|
|
|
}
|