Robert Marshall 9 年 前
コミット
f4a7036d0a
1 ファイル変更1 行追加3 行削除
  1. 1 3
      Model/DBObject.php

+ 1 - 3
Model/DBObject.php

@@ -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);
 		}