Fix adobe issue
This commit is contained in:
@@ -128,9 +128,10 @@ class ADODB_Active_Record {
|
||||
$db = $pkeyarr;
|
||||
$pkeyarr = false;
|
||||
}
|
||||
|
||||
if (!$table) {
|
||||
if (!empty($this->_table)) $table = $this->_table;
|
||||
|
||||
if (!$table) {
|
||||
if (!empty($this->table)) $table = $this->table;
|
||||
else if (!empty($this->_table)) $table = $this->_table;
|
||||
else $table = $this->_pluralize(get_class($this));
|
||||
}
|
||||
$this->foreignName = strtolower(get_class($this)); // CFR: default foreign name
|
||||
@@ -1058,4 +1059,4 @@ function adodb_GetActiveRecordsClass2(&$db, $class, $table, $qry, $bindarr, $pri
|
||||
|
||||
return $arr;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user